IPsec: add "automatic" type to trust Strongswan's parser, see discussion in https://github.com/opnsense/core/issues/5155

This commit is contained in:
Ad Schellevis 2021-08-10 10:50:17 +02:00
parent d5c090b38e
commit 92ea650888

View File

@ -825,7 +825,8 @@ include("head.inc");
'user_fqdn' => array( 'desc' => gettext('User distinguished name'), 'mobile' => true ),
'asn1dn' => array( 'desc' => gettext('ASN.1 distinguished Name'), 'mobile' => true ),
'keyid tag' => array( 'desc' => gettext('KeyID tag'), 'mobile' => true ),
'dyn_dns' => array( 'desc' => gettext('Dynamic DNS'), 'mobile' => true ));
'dyn_dns' => array( 'desc' => gettext('Dynamic DNS'), 'mobile' => true ),
'auto' => array( 'desc' => gettext('Automatic'), 'mobile' => true ));
foreach ($my_identifier_list as $id_type => $id_params) :
?>
<option value="<?=$id_type;?>" <?php if ($id_type == $pconfig['myid_type']) {
@ -854,7 +855,8 @@ endforeach; ?>
'fqdn' => array( 'desc' => gettext('Distinguished name'), 'mobile' => true ),
'user_fqdn' => array( 'desc' => gettext('User distinguished name'), 'mobile' => true ),
'asn1dn' => array( 'desc' => gettext('ASN.1 distinguished Name'), 'mobile' => true ),
'keyid tag' => array( 'desc' =>gettext('KeyID tag'), 'mobile' => true ));
'keyid tag' => array( 'desc' =>gettext('KeyID tag'), 'mobile' => true ),
'auto' => array( 'desc' => gettext('Automatic'), 'mobile' => true ));
foreach ($peer_identifier_list as $id_type => $id_params) :
if (!empty($pconfig['mobile']) && !$id_params['mobile']) {
continue;