From c31488f0e3206c4477692065781e49f2fbd7c9ed Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 26 Jul 2021 21:54:54 +0200 Subject: ipsec: T1210: extend support for iOS profile generation $ generate ipsec mac-ios-profile remote --- data/templates/ipsec/ios_profile.tmpl | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'data/templates') diff --git a/data/templates/ipsec/ios_profile.tmpl b/data/templates/ipsec/ios_profile.tmpl index 49e8b0992..af6c79d6e 100644 --- a/data/templates/ipsec/ios_profile.tmpl +++ b/data/templates/ipsec/ios_profile.tmpl @@ -58,35 +58,29 @@ ExtendedAuthEnabled 1 -{% if ike_proposal is defined and ike_proposal is not none %} IKESecurityAssociationParameters -{% for ike, ike_config in ike_proposal.items() %} EncryptionAlgorithm - {{ ike_config.encryption | upper }} + {{ ike_encryption.encryption }} IntegrityAlgorithm - {{ ike_config.hash | upper }} + {{ ike_encryption.hash }} DiffieHellmanGroup - {{ ike_config.dh_group | upper }} + {{ ike_encryption.dh_group }} -{% endfor %} -{% endif %} -{% if esp_proposal is defined and esp_proposal is not none %} ChildSecurityAssociationParameters -{% for esp, esp_config in esp_proposal.items() %} EncryptionAlgorithm - {{ esp_config.encryption | upper }} + {{ esp_encryption.encryption }} IntegrityAlgorithm - {{ esp_config.hash | upper }} + {{ esp_encryption.hash }} + DiffieHellmanGroup + {{ ike_encryption.dh_group }} -{% endfor %} -{% endif %} -- cgit v1.2.3