diff options
author | Ermal <eri@pfsense.org> | 2014-11-17 09:17:25 +0100 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-11-17 09:17:25 +0100 |
commit | 1e0544a61f9b05931ed51e1b664df277f4fdf7f9 (patch) | |
tree | 1bb644309a3ce87d59b7f6ee131a962de973f222 | |
parent | 1deb0924b13658db59eb98d5c327db5a3cc667af (diff) | |
download | pfsense-1e0544a61f9b05931ed51e1b664df277f4fdf7f9.zip pfsense-1e0544a61f9b05931ed51e1b664df277f4fdf7f9.tar.gz |
Fix the generation of certificates for rsa type. strpos returns the pos as 0 for rsasig but it php considers that as false anyhow
-rw-r--r-- | etc/inc/vpn.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index f1f97fe..c2f9a87 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -440,7 +440,7 @@ EOD; if (isset($ph1ent['disabled'])) continue; - if (strpos($ph1ent['authentication_method'], 'rsa') || $ph1ent['authentication_method'] == 'eap-tls') { + if (strstr($ph1ent['authentication_method'], 'rsa') || $ph1ent['authentication_method'] == 'eap-tls') { $certline = ''; $ikeid = $ph1ent['ikeid']; |