diff --git a/src/etc/inc/plugins.inc.d/openvpn/tls-verify.php b/src/etc/inc/plugins.inc.d/openvpn/tls-verify.php index ff1080d96..95fc239c8 100644 --- a/src/etc/inc/plugins.inc.d/openvpn/tls-verify.php +++ b/src/etc/inc/plugins.inc.d/openvpn/tls-verify.php @@ -3,6 +3,7 @@ /* Copyright (C) 2011 Jim Pingle + Copyright (C) 2018 Deciso B.V. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -35,35 +36,17 @@ * intermediates. */ -require_once("config.inc"); -require_once("interfaces.inc"); - openlog("openvpn", LOG_ODELAY, LOG_AUTH); /* read data from command line */ $cert_depth = intval($argv[1]); $cert_subject = $argv[2]; -/* Reserved for future use in case we decide to verify CNs and such as well -$subj = explode("/", $cert_subject); -foreach ($subj at $s) { - list($n, $v) = explode("=", $s); - if ($n == "CN") - $common_name = $v; -} -*/ - -/* Replaced by sed with proper variables used below ( $server_cn and $allowed_depth ). */ -//