Commit e5d2f6a8 authored by Franco Fichtner's avatar Franco Fichtner

openvpn: zap unused OpenSSL-related funtion

While there, "maybe" copyright translates to "yes" copyright.
If someone wants to oppose this, feel free to verify each code
line and submit a pull request to remove those two statements.
parent a711dae4
<?php
/*
openvpn.inc part of pfSense
/*
Copyright (C) 2008 Scott Ullrich <sullrich@gmail.com>
All rights reserved.
Copyright (C) 2006 Fernando Lemos
All rights reserved.
This file was rewritten from scratch by Fernando Lemos but
*MIGHT* contain code previously written by:
Copyright (C) 2005 Peter Allgeyer <allgeyer_AT_web.de>
All rights reserved.
Copyright (C) 2004 Peter Curran (peter@closeconsultants.com).
All rights reserved.
......@@ -37,17 +27,12 @@
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
DISABLE_PHP_LINT_CHECKING
pfSense_BUILDER_BINARIES: /usr/local/sbin/openvpn /usr/bin/openssl /sbin/ifconfig
pfSense_MODULE: openvpn
*/
require_once('config.inc');
require_once("certs.inc");
require_once('certs.inc');
require_once('pfsense-utils.inc');
require_once("auth.inc");
require_once('auth.inc');
global $openvpn_prots;
$openvpn_prots = array("UDP", "UDP6", "TCP", "TCP6");
......@@ -129,18 +114,6 @@ function openvpn_create_key() {
return $rslt;
}
function openvpn_create_dhparams($bits) {
$fp = popen("/usr/bin/openssl dhparam {$bits} 2>/dev/null", "r");
if (!$fp)
return false;
$rslt = stream_get_contents($fp);
pclose($fp);
return $rslt;
}
function openvpn_vpnid_used($vpnid) {
global $config;
......@@ -1425,5 +1398,3 @@ function openvpn_restart_by_vpnid($mode, $vpnid) {
$settings = openvpn_get_settings($mode, $vpnid);
openvpn_restart($mode, $settings);
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment