Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pluto: add IKEv2_ENCR_CHACHA20_POLY1305 to list of ENCR
  • Loading branch information
letoams committed Feb 19, 2017
1 parent 83f4536 commit d2fbf67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/ietf_constants.h
Expand Up @@ -850,7 +850,8 @@ enum ikev2_trans_type_encr {
IKEv2_ENCR_CAMELLIA_CCM_A = 25, /* CAMELLIA_CCM_8 RFC 5529 */
IKEv2_ENCR_CAMELLIA_CCM_B = 26, /* CAMELLIA_CCM_12 RFC 5529 */
IKEv2_ENCR_CAMELLIA_CCM_C = 27, /* CAMELLIA_CCM_16 RFC 5529 */
/* 28 - 1023 Reserved to IANA */
IKEv2_ENCR_CHACHA20_POLY1305 = 28, /* RFC7634 */
/* 29 - 1023 Reserved to IANA */
/* 1024 - 65535 Private Use */
IKEv2_ENCR_SERPENT_CBC = 65004,
IKEv2_ENCR_TWOFISH_CBC = 65005,
Expand Down
5 changes: 3 additions & 2 deletions lib/libswan/constants.c
Expand Up @@ -1894,7 +1894,8 @@ static const char *const ikev2_trans_type_encr_name[] = {
"CAMELLIA_CCM_A", /* CAMELLIA_CCM_8 RFC 5529 */
"CAMELLIA_CCM_B", /* CAMELLIA_CCM_12 RFC 5529 */
"CAMELLIA_CCM_C", /* CAMELLIA_CCM_16 RFC 5529 */
/* 28 - 1023 Unassigned */
"CHACHA20_POLY1305", /* RFC 7634 */
/* 29 - 1023 Unassigned */
/* 1024 - 65535 Private use */
};

Expand All @@ -1916,7 +1917,7 @@ static enum_names ikev2_trans_type_encr_names_private_use1 = {

enum_names ikev2_trans_type_encr_names = {
IKEv2_ENCR_DES_IV64,
IKEv2_ENCR_CAMELLIA_CCM_C,
IKEv2_ENCR_CHACHA20_POLY1305,
ARRAY_REF(ikev2_trans_type_encr_name),
NULL, /* prefix */
&ikev2_trans_type_encr_names_private_use1
Expand Down

0 comments on commit d2fbf67

Please sign in to comment.