- fixed parser to use new payload mechanisms
[strongswan.git] / Source / charon / payloads / payload.c
index dad260f..a221601 100644 (file)
 
 #include "payload.h"
 
-
-
-
-
-
-
-
+#include "ike_header.h"
 
 
 
@@ -61,3 +55,17 @@ mapping_t payload_type_t_mappings[] = {
        {MAPPING_END, NULL}
 };
 
+/*
+ * see header
+ */
+payload_t *payload_create(payload_type_t type)
+{
+       switch (type)
+       {
+               case HEADER:
+                       return (payload_t*)ike_header_create();
+               default:
+                       return NULL;
+       }
+}
+