Permalink
Browse files

change cert and cert req cert-encoding field to be loose_enum, as IET…

…F may define new values
  • Loading branch information...
mcr authored and shussain committed Apr 24, 2017
1 parent 80f93a1 commit bf00e2cc6ebe1b44af28e5beed67efe3e114a61f
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/libpluto/packet.c
View
@@ -827,7 +827,8 @@ static field_desc ikev2_cert_fields[] = {
{ ft_enum, 8/BITS_PER_BYTE, "next payload type", &payload_names },
{ ft_set, 8/BITS_PER_BYTE, "critical bit", critical_names},
{ ft_len, 16/BITS_PER_BYTE, "length", NULL },
{ ft_enum, 8/BITS_PER_BYTE, "ikev2 cert encoding", &ikev2_cert_type_names },
{ ft_loose_enum,
8/BITS_PER_BYTE, "ikev2 cert encoding", &ikev2_cert_type_names },
{ ft_end, 0, NULL, NULL }
};
@@ -852,9 +853,10 @@ struct_desc ikev2_certificate_desc = { "IKEv2 Certificate Payload", ikev2_cert_f
static field_desc ikev2_cert_req_fields[] = {
{ ft_enum, 8/BITS_PER_BYTE, "next payload type", &payload_names },
{ ft_set, 8/BITS_PER_BYTE, "critical bit", critical_names},
{ ft_set, 8/BITS_PER_BYTE, "critical bit", critical_names},
{ ft_len, 16/BITS_PER_BYTE, "length", NULL },
{ ft_enum, 8/BITS_PER_BYTE, "ikev2 cert encoding", &ikev2_cert_type_names },
{ ft_loose_enum,
8/BITS_PER_BYTE, "ikev2 cert encoding", &ikev2_cert_type_names },
{ ft_end, 0, NULL, NULL }
};

0 comments on commit bf00e2c

Please sign in to comment.