algparse -v1 -pfs 'esp'
	AES_CBC-HMAC_SHA1_96
algparse -v1 -pfs 'esp='
	ERROR: String ended with invalid char, just after ""
algparse -v1 -pfs 'esp=aes'
	AES_CBC-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes;modp2048'
	AES_CBC-HMAC_SHA1_96-MODP2048
algparse -v1 -pfs 'esp=aes-sha1'
	AES_CBC-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes-sha1'
	AES_CBC-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes-sha1-modp2048'
	AES_CBC-HMAC_SHA1_96-MODP2048
algparse -v1 -pfs 'esp=aes-128'
	AES_CBC_128-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes-128-sha1'
	AES_CBC_128-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes-128-sha1'
	AES_CBC_128-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes-128-sha1-modp2048'
	AES_CBC_128-HMAC_SHA1_96-MODP2048
algparse -v1 -pfs 'esp=aes_gcm_a-128-null'
	AES_GCM_8_128-NONE
algparse -v1 -pfs 'esp=3des-sha1;modp1024'
	3DES_CBC-HMAC_SHA1_96-MODP1024
algparse -v1 -pfs 'esp=3des-sha1;modp1536'
	3DES_CBC-HMAC_SHA1_96-MODP1536
algparse -v1 -pfs 'esp=3des-sha1;modp2048'
	3DES_CBC-HMAC_SHA1_96-MODP2048
algparse -v1 -pfs 'esp=3des-sha1;dh21'
	ERROR: ESP DH algorithm 'dh21' is not supported by IKEv1
algparse -v1 -pfs 'esp=3des-sha1;ecp_521'
	ERROR: ESP DH algorithm 'ecp_521' is not supported by IKEv1
algparse -v1 -pfs 'esp=3des-sha1;dh23'
	ERROR: ESP DH algorithm 'dh23' is not supported
algparse -v1 -pfs 'esp=3des-sha1;dh24'
	ERROR: ESP DH algorithm 'dh24' is not supported
algparse -v1 -pfs 'esp=3des-sha1'
	3DES_CBC-HMAC_SHA1_96
algparse -v1 -pfs 'esp=null-sha1'
	NULL-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes_cbc'
	AES_CBC-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes-sha'
	AES_CBC-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes-sha1'
	AES_CBC-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes-sha2'
	AES_CBC-HMAC_SHA2_256_128
algparse -v1 -pfs 'esp=aes-sha256'
	AES_CBC-HMAC_SHA2_256_128
algparse -v1 -pfs 'esp=aes-sha384'
	AES_CBC-HMAC_SHA2_384_192
algparse -v1 -pfs 'esp=aes-sha512'
	AES_CBC-HMAC_SHA2_512_256
algparse -v1 -pfs 'esp=aes128-sha1'
	AES_CBC_128-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes128-aes_xcbc'
	AES_CBC_128-AES_XCBC_96
algparse -v1 -pfs 'esp=aes192-sha1'
	AES_CBC_192-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes256-sha1'
	AES_CBC_256-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes256-sha'
	AES_CBC_256-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes256-sha2'
	AES_CBC_256-HMAC_SHA2_256_128
algparse -v1 -pfs 'esp=aes256-sha2_256'
	AES_CBC_256-HMAC_SHA2_256_128
algparse -v1 -pfs 'esp=aes256-sha2_384'
	AES_CBC_256-HMAC_SHA2_384_192
algparse -v1 -pfs 'esp=aes256-sha2_512'
	AES_CBC_256-HMAC_SHA2_512_256
algparse -v1 -pfs 'esp=camellia'
	CAMELLIA_CBC-HMAC_SHA1_96
algparse -v1 -pfs 'esp=camellia128'
	CAMELLIA_CBC_128-HMAC_SHA1_96
algparse -v1 -pfs 'esp=camellia192'
	CAMELLIA_CBC_192-HMAC_SHA1_96
algparse -v1 -pfs 'esp=camellia256'
	CAMELLIA_CBC_256-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes_ccm'
	AES_CCM_16-NONE
algparse -v1 -pfs 'esp=aes_ccm_a-128-null'
	AES_CCM_8_128-NONE
algparse -v1 -pfs 'esp=aes_ccm_a-192-null'
	AES_CCM_8_192-NONE
algparse -v1 -pfs 'esp=aes_ccm_a-256-null'
	AES_CCM_8_256-NONE
algparse -v1 -pfs 'esp=aes_ccm_b-128-null'
	AES_CCM_12_128-NONE
algparse -v1 -pfs 'esp=aes_ccm_b-192-null'
	AES_CCM_12_192-NONE
algparse -v1 -pfs 'esp=aes_ccm_b-256-null'
	AES_CCM_12_256-NONE
algparse -v1 -pfs 'esp=aes_ccm_c-128-null'
	AES_CCM_16_128-NONE
algparse -v1 -pfs 'esp=aes_ccm_c-192-null'
	AES_CCM_16_192-NONE
algparse -v1 -pfs 'esp=aes_ccm_c-256-null'
	AES_CCM_16_256-NONE
algparse -v1 -pfs 'esp=aes_gcm'
	AES_GCM_16-NONE
algparse -v1 -pfs 'esp=aes_gcm_a-128-null'
	AES_GCM_8_128-NONE
algparse -v1 -pfs 'esp=aes_gcm_a-192-null'
	AES_GCM_8_192-NONE
algparse -v1 -pfs 'esp=aes_gcm_a-256-null'
	AES_GCM_8_256-NONE
algparse -v1 -pfs 'esp=aes_gcm_b-128-null'
	AES_GCM_12_128-NONE
algparse -v1 -pfs 'esp=aes_gcm_b-192-null'
	AES_GCM_12_192-NONE
algparse -v1 -pfs 'esp=aes_gcm_b-256-null'
	AES_GCM_12_256-NONE
algparse -v1 -pfs 'esp=aes_gcm_c-128-null'
	AES_GCM_16_128-NONE
algparse -v1 -pfs 'esp=aes_gcm_c-192-null'
	AES_GCM_16_192-NONE
algparse -v1 -pfs 'esp=aes_gcm_c-256-null'
	AES_GCM_16_256-NONE
algparse -v1 -pfs 'esp=aes_ccm_a-null'
	AES_CCM_8-NONE
algparse -v1 -pfs 'esp=aes_ccm_b-null'
	AES_CCM_12-NONE
algparse -v1 -pfs 'esp=aes_ccm_c-null'
	AES_CCM_16-NONE
algparse -v1 -pfs 'esp=aes_gcm_a-null'
	AES_GCM_8-NONE
algparse -v1 -pfs 'esp=aes_gcm_b-null'
	AES_GCM_12-NONE
algparse -v1 -pfs 'esp=aes_gcm_c-null'
	AES_GCM_16-NONE
algparse -v1 -pfs 'esp=aes_ccm-null'
	AES_CCM_16-NONE
algparse -v1 -pfs 'esp=aes_gcm-null'
	AES_GCM_16-NONE
algparse -v1 -pfs 'esp=aes_ccm-256-null'
	AES_CCM_16_256-NONE
algparse -v1 -pfs 'esp=aes_gcm-192-null'
	AES_GCM_16_192-NONE
algparse -v1 -pfs 'esp=aes_ccm_256-null'
	AES_CCM_16_256-NONE
algparse -v1 -pfs 'esp=aes_gcm_192-null'
	AES_GCM_16_192-NONE
algparse -v1 -pfs 'esp=aes_ccm_8-null'
	AES_CCM_8-NONE
algparse -v1 -pfs 'esp=aes_ccm_12-null'
	AES_CCM_12-NONE
algparse -v1 -pfs 'esp=aes_ccm_16-null'
	AES_CCM_16-NONE
algparse -v1 -pfs 'esp=aes_gcm_8-null'
	AES_GCM_8-NONE
algparse -v1 -pfs 'esp=aes_gcm_12-null'
	AES_GCM_12-NONE
algparse -v1 -pfs 'esp=aes_gcm_16-null'
	AES_GCM_16-NONE
algparse -v1 -pfs 'esp=aes_ccm_8-128-null'
	AES_CCM_8_128-NONE
algparse -v1 -pfs 'esp=aes_ccm_12-192-null'
	AES_CCM_12_192-NONE
algparse -v1 -pfs 'esp=aes_ccm_16-256-null'
	AES_CCM_16_256-NONE
algparse -v1 -pfs 'esp=aes_gcm_8-128-null'
	AES_GCM_8_128-NONE
algparse -v1 -pfs 'esp=aes_gcm_12-192-null'
	AES_GCM_12_192-NONE
algparse -v1 -pfs 'esp=aes_gcm_16-256-null'
	AES_GCM_16_256-NONE
algparse -v1 -pfs 'esp=aes_ccm_8_128-null'
	AES_CCM_8_128-NONE
algparse -v1 -pfs 'esp=aes_ccm_12_192-null'
	AES_CCM_12_192-NONE
algparse -v1 -pfs 'esp=aes_ccm_16_256-null'
	AES_CCM_16_256-NONE
algparse -v1 -pfs 'esp=aes_gcm_8_128-null'
	AES_GCM_8_128-NONE
algparse -v1 -pfs 'esp=aes_gcm_12_192-null'
	AES_GCM_12_192-NONE
algparse -v1 -pfs 'esp=aes_gcm_16_256-null'
	AES_GCM_16_256-NONE
algparse -v1 -pfs 'esp=aes_ctr'
	AES_CTR-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aesctr'
	AES_CTR-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes_ctr128'
	AES_CTR_128-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes_ctr192'
	AES_CTR_192-HMAC_SHA1_96
algparse -v1 -pfs 'esp=aes_ctr256'
	AES_CTR_256-HMAC_SHA1_96
algparse -v1 -pfs 'esp=serpent'
	SERPENT_CBC-HMAC_SHA1_96
algparse -v1 -pfs 'esp=twofish'
	TWOFISH_CBC-HMAC_SHA1_96
algparse -v1 -pfs 'esp=camellia_cbc_256-hmac_sha2_512_256;modp8192'
	CAMELLIA_CBC_256-HMAC_SHA2_512_256-MODP8192
algparse -v1 -pfs 'esp=null_auth_aes_gmac_256-null;modp8192'
	NULL_AUTH_AES_GMAC_256-NONE-MODP8192
algparse -v1 -pfs 'esp=3des-sha1;modp8192'
	3DES_CBC-HMAC_SHA1_96-MODP8192
algparse -v1 -pfs 'esp=3des-sha1-modp8192'
	3DES_CBC-HMAC_SHA1_96-MODP8192
algparse -v1 -pfs 'esp=aes-sha1,3des-sha1;modp8192'
	ERROR: either all or no ESP proposals should specify DH
algparse -v1 -pfs 'esp=aes-sha1-modp8192,3des-sha1-modp8192'
	AES_CBC-HMAC_SHA1_96-MODP8192
	3DES_CBC-HMAC_SHA1_96-MODP8192
algparse -v1 -pfs 'esp=aes-sha1-modp8192,aes-sha1-modp8192,aes-sha1-modp8192'
	AES_CBC-HMAC_SHA1_96-MODP8192
algparse -v1 -pfs 'esp=aes;none'
	ERROR: ESP DH algorithm 'none' is not supported by IKEv1
algparse -v1 -pfs 'esp=aes;none,aes'
	ERROR: ESP DH algorithm 'none' is not supported by IKEv1
algparse -v1 -pfs 'esp=aes;none,aes;modp2048'
	ERROR: ESP DH algorithm 'none' is not supported by IKEv1
algparse -v1 -pfs 'esp=aes-sha1-none'
	ERROR: ESP DH algorithm 'none' is not supported by IKEv1
algparse -v1 -pfs 'esp=aes-sha1;none'
	ERROR: ESP DH algorithm 'none' is not supported by IKEv1
algparse -v1 -pfs 'esp=3des168-sha1'
	ERROR: 3DES does not take variable key lengths
algparse -v1 -pfs 'esp=3des-null'
	ERROR: non-AEAD ESP encryption algorithm '3des_cbc' cannot have 'none' as the integrity algorithm
algparse -v1 -pfs 'esp=aes128-null'
	ERROR: non-AEAD ESP encryption algorithm 'aes' cannot have 'none' as the integrity algorithm
algparse -v1 -pfs 'esp=aes224-sha1'
	ERROR: wrong encryption key length - key size must be 128 (default), 192 or 256
algparse -v1 -pfs 'esp=aes-224-sha1'
	ERROR: wrong encryption key length - key size must be 128 (default), 192 or 256
algparse -v1 -pfs 'esp=aes0-sha1'
	ERROR: encryption key length is zero
algparse -v1 -pfs 'esp=aes-0-sha1'
	ERROR: encryption key length is zero
algparse -v1 -pfs 'esp=aes512-sha1'
	ERROR: wrong encryption key length - key size must be 128 (default), 192 or 256
algparse -v1 -pfs 'esp=aes-sha1555'
	ERROR: ESP integrity algorithm 'sha1555' is not recognized
algparse -v1 -pfs 'esp=camellia666-sha1'
	ERROR: wrong encryption key length - key size must be 128 (default), 192 or 256
algparse -v1 -pfs 'esp=blowfish'
	ERROR: ESP encryption algorithm 'blowfish' is not supported
algparse -v1 -pfs 'esp=des-sha1'
	ERROR: ESP encryption algorithm 'des' is not supported
algparse -v1 -pfs 'esp=aes_ctr666'
	ERROR: wrong encryption key length - key size must be 128 (default), 192 or 256
algparse -v1 -pfs 'esp=aes128-sha2_128'
	ERROR: ESP integrity algorithm 'sha2_128' is not recognized
algparse -v1 -pfs 'esp=aes256-sha2_256-4096'
	ERROR: ESP DH algorithm '4096' is not recognized
algparse -v1 -pfs 'esp=aes256-sha2_256-128'
	ERROR: ESP DH algorithm '128' is not recognized
algparse -v1 -pfs 'esp=vanitycipher'
	ERROR: ESP encryption algorithm 'vanitycipher' is not recognized
algparse -v1 -pfs 'esp=ase-sah'
	ERROR: ESP encryption algorithm 'ase' is not recognized
algparse -v1 -pfs 'esp=aes-sah1'
	ERROR: ESP integrity algorithm 'sah1' is not recognized
algparse -v1 -pfs 'esp=id3'
	ERROR: ESP encryption algorithm 'id3' is not recognized
algparse -v1 -pfs 'esp=aes-id3'
	ERROR: ESP integrity algorithm 'id3' is not recognized
algparse -v1 -pfs 'esp=aes_gcm-md5'
	ERROR: AEAD ESP encryption algorithm 'aes_gcm_16' must have 'none' as the integrity algorithm
algparse -v1 -pfs 'esp=mars'
	ERROR: ESP encryption algorithm 'mars' is not supported
algparse -v1 -pfs 'esp=aes_gcm-16'
	ERROR: wrong encryption key length - key size must be 128 (default), 192 or 256
algparse -v1 -pfs 'esp=aes_gcm-0'
	ERROR: encryption key length is zero
algparse -v1 -pfs 'esp=aes_gcm-123456789012345'
	ERROR: encryption key length '123456789012345' WAY too big
algparse -v1 -pfs 'esp=3des-sha1;dh22'
	ERROR: ESP DH algorithm 'dh22' is not supported
algparse -v1 -pfs 'esp=3des-sha1;modp8192,3des-sha2'
	ERROR: either all or no ESP proposals should specify DH
algparse -v1 -pfs 'esp=3des-sha1-modp8192,3des-sha2'
	ERROR: either all or no ESP proposals should specify DH
algparse -v1 -pfs 'esp=3des-sha1-modp8192,3des-sha2-modp8192'
	3DES_CBC-HMAC_SHA1_96-MODP8192
	3DES_CBC-HMAC_SHA2_256_128-MODP8192
algparse -v1 -pfs 'esp=3des-sha1-modp8192,3des-sha2;modp8192'
	3DES_CBC-HMAC_SHA1_96-MODP8192
	3DES_CBC-HMAC_SHA2_256_128-MODP8192
algparse -v1 -pfs 'esp=3des-sha1;modp8192,3des-sha2-modp8192'
	3DES_CBC-HMAC_SHA1_96-MODP8192
	3DES_CBC-HMAC_SHA2_256_128-MODP8192
algparse -v1 -pfs 'esp=3des-sha1;modp8192,3des-sha2;modp8192'
	3DES_CBC-HMAC_SHA1_96-MODP8192
	3DES_CBC-HMAC_SHA2_256_128-MODP8192
algparse -v1 -pfs 'esp=3des-sha1-modp8192,3des-sha2-modp2048'
	ERROR: more than one IKEv1 ESP DH algorithm (MODP8192, MODP2048) is not allowed in quick mode
algparse -v1 -pfs 'ah'
	HMAC_SHA1_96
algparse -v1 -pfs 'ah='
	ERROR: String ended with invalid char, just after ""
algparse -v1 -pfs 'ah=md5'
	HMAC_MD5_96
algparse -v1 -pfs 'ah=sha'
	HMAC_SHA1_96
algparse -v1 -pfs 'ah=sha;modp2048'
	HMAC_SHA1_96-MODP2048
algparse -v1 -pfs 'ah=sha1'
	HMAC_SHA1_96
algparse -v1 -pfs 'ah=sha2'
	HMAC_SHA2_256_128
algparse -v1 -pfs 'ah=sha256'
	HMAC_SHA2_256_128
algparse -v1 -pfs 'ah=sha384'
	HMAC_SHA2_384_192
algparse -v1 -pfs 'ah=sha512'
	HMAC_SHA2_512_256
algparse -v1 -pfs 'ah=sha2_256'
	HMAC_SHA2_256_128
algparse -v1 -pfs 'ah=sha2_384'
	HMAC_SHA2_384_192
algparse -v1 -pfs 'ah=sha2_512'
	HMAC_SHA2_512_256
algparse -v1 -pfs 'ah=aes_xcbc'
	AES_XCBC_96
algparse -v1 -pfs 'ah=sha2-none'
	ERROR: AH DH algorithm 'none' is not supported by IKEv1
algparse -v1 -pfs 'ah=sha2;none'
	ERROR: AH DH algorithm 'none' is not supported by IKEv1
algparse -v1 -pfs 'ah=sha1-modp8192,sha1-modp8192,sha1-modp8192'
	HMAC_SHA1_96-MODP8192
algparse -v1 -pfs 'ah=aes-sha1'
	ERROR: AH integrity algorithm 'aes' is not recognized
algparse -v1 -pfs 'ah=vanityhash1'
	ERROR: AH integrity algorithm 'vanityhash1' is not recognized
algparse -v1 -pfs 'ah=aes_gcm_c-256'
	ERROR: AH integrity algorithm 'aes_gcm_c' is not recognized
algparse -v1 -pfs 'ah=id3'
	ERROR: AH integrity algorithm 'id3' is not recognized
algparse -v1 -pfs 'ah=3des'
	ERROR: AH integrity algorithm '3des' is not recognized
algparse -v1 -pfs 'ah=null'
	ERROR: AH cannot have 'none' as the integrity algorithm
algparse -v1 -pfs 'ah=aes_gcm'
	ERROR: AH integrity algorithm 'aes_gcm' is not recognized
algparse -v1 -pfs 'ah=aes_ccm'
	ERROR: AH integrity algorithm 'aes_ccm' is not recognized
algparse -v1 -pfs 'ah=ripemd'
	ERROR: AH integrity algorithm 'ripemd' is not recognized
algparse -v1 -pfs 'ike'
	AES_CBC-HMAC_SHA2_256-MODP2048
	AES_CBC-HMAC_SHA2_512-MODP2048
	AES_CBC-HMAC_SHA1-MODP2048
	3DES_CBC-HMAC_SHA2_256-MODP2048
	3DES_CBC-HMAC_SHA2_512-MODP2048
	3DES_CBC-HMAC_SHA1-MODP2048
	AES_CBC-HMAC_SHA2_256-MODP1536
	AES_CBC-HMAC_SHA2_512-MODP1536
	AES_CBC-HMAC_SHA1-MODP1536
	3DES_CBC-HMAC_SHA2_256-MODP1536
	3DES_CBC-HMAC_SHA2_512-MODP1536
	3DES_CBC-HMAC_SHA1-MODP1536
algparse -v1 -pfs 'ike='
	ERROR: String ended with invalid char, just after ""
algparse -v1 -pfs 'ike=3des-sha1'
	3DES_CBC-HMAC_SHA1-MODP2048
	3DES_CBC-HMAC_SHA1-MODP1536
algparse -v1 -pfs 'ike=3des-sha1'
	3DES_CBC-HMAC_SHA1-MODP2048
	3DES_CBC-HMAC_SHA1-MODP1536
algparse -v1 -pfs 'ike=3des-sha1;modp1536'
	3DES_CBC-HMAC_SHA1-MODP1536
algparse -v1 -pfs 'ike=3des;dh21'
	3DES_CBC-HMAC_SHA2_256-DH21
	3DES_CBC-HMAC_SHA2_512-DH21
	3DES_CBC-HMAC_SHA1-DH21
algparse -v1 -pfs 'ike=3des-sha1;dh21'
	3DES_CBC-HMAC_SHA1-DH21
algparse -v1 -pfs 'ike=3des-sha1-ecp_521'
	3DES_CBC-HMAC_SHA1-DH21
algparse -v1 -pfs 'ike=aes_gcm'
	ERROR: IKE encryption algorithm 'aes_gcm' is not supported by IKEv1
algparse -v1 -pfs 'ike=aes-sha1-modp8192,aes-sha1-modp8192,aes-sha1-modp8192'
	AES_CBC-HMAC_SHA1-MODP8192
algparse -v1 -pfs 'ike=aes;none'
	ERROR: IKE DH algorithm 'none' is not supported by IKEv1
algparse -v1 -pfs 'ike=id2'
	ERROR: IKE encryption algorithm 'id2' is not recognized
algparse -v1 -pfs 'ike=3des-id2'
	ERROR: IKE PRF algorithm 'id2' is not recognized
algparse -v1 -pfs 'ike=aes_ccm'
	ERROR: IKE encryption algorithm 'aes_ccm' is not supported by IKEv1
algparse -v1 -pfs 'ike=aes_gcm-sha1-none-modp2048'
	ERROR: IKE encryption algorithm 'aes_gcm' is not supported by IKEv1
algparse -v1 -pfs 'ike=aes_gcm+aes_gcm-sha1-none-modp2048'
	ERROR: IKE encryption algorithm 'aes_gcm+aes_gcm' is not recognized
algparse -v1 -pfs 'ike=aes+aes_gcm'
	ERROR: IKE encryption algorithm 'aes+aes_gcm' is not recognized
