diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-01-28 21:24:43 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-01-28 21:24:43 +0100 |
commit | 99df898e0c5fd8533d234bbb7846b89d9097a424 (patch) | |
tree | 94c077a05b5ad5884bc88167a0c7fd5b5815f6c7 | |
parent | b601f897a5f6acfb4abc8beeedf0bb0d5cfa3193 (diff) | |
download | pfsense-99df898e0c5fd8533d234bbb7846b89d9097a424.zip pfsense-99df898e0c5fd8533d234bbb7846b89d9097a424.tar.gz |
Fixes #4275 use double quotes on asn1dn specification so strongswan properly interprets it
-rw-r--r-- | etc/inc/ipsec.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index 31e020a..364d814 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -651,10 +651,12 @@ function ipsec_find_id(& $ph1ent, $side = "local", $rgmap = array()) { case "fqdn"; case "keyid tag"; case "user_fqdn"; + $thisid_data = $id_data; + break; case "asn1dn"; $thisid_data = $id_data; - if( $thisid_data ) - $thisid_data = "{$thisid_data}"; + if( $thisid_data && $thisid_data[0] != '"') + $thisid_data = "\"{$thisid_data}\""; break; } return array($thisid_type, $thisid_data); |