Added IKEv1 payload identifiers to "known" payload list
authorMartin Willi <martin@revosec.ch>
Tue, 15 Nov 2011 14:58:23 +0000 (14:58 +0000)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:30:39 +0000 (17:30 +0100)
src/libcharon/encoding/payloads/payload.c

index 93b3641..47fe20c 100644 (file)
@@ -211,8 +211,15 @@ payload_t *payload_create(payload_type_t type)
  */
 bool payload_is_known(payload_type_t type)
 {
-       if (type == HEADER ||
-               (type >= SECURITY_ASSOCIATION && type <= EXTENSIBLE_AUTHENTICATION))
+       if (type == HEADER)
+       {
+               return TRUE;
+       }
+       if (type >= SECURITY_ASSOCIATION && type <= EXTENSIBLE_AUTHENTICATION)
+       {
+               return TRUE;
+       }
+       if (type >= SECURITY_ASSOCIATION_V1 && type <= VENDOR_ID_V1)
        {
                return TRUE;
        }