- parser succesfully parses sa payload
[strongswan.git] / Source / charon / payloads / payload.c
index af0eb78..cf7a75b 100644 (file)
@@ -25,6 +25,7 @@
 #include "payload.h"
 
 #include "ike_header.h"
 #include "payload.h"
 
 #include "ike_header.h"
+#include "sa_payload.h"
 
 
 
 
 
 
@@ -54,6 +55,7 @@ mapping_t payload_type_t_mappings[] = {
        {HEADER, "HEADER"},
        {PROPOSAL_SUBSTRUCTURE, "PROPOSAL_SUBSTRUCTURE"},
        {TRANSFORM_SUBSTRUCTURE, "TRANSFORM_SUBSTRUCTURE"},
        {HEADER, "HEADER"},
        {PROPOSAL_SUBSTRUCTURE, "PROPOSAL_SUBSTRUCTURE"},
        {TRANSFORM_SUBSTRUCTURE, "TRANSFORM_SUBSTRUCTURE"},
+       {TRANSFORM_ATTRIBUTE, "TRANSFORM_ATTRIBUTE"},
        {MAPPING_END, NULL}
 };
 
        {MAPPING_END, NULL}
 };
 
@@ -66,6 +68,14 @@ payload_t *payload_create(payload_type_t type)
        {
                case HEADER:
                        return (payload_t*)ike_header_create();
        {
                case HEADER:
                        return (payload_t*)ike_header_create();
+               case SECURITY_ASSOCIATION:
+                       return (payload_t*)sa_payload_create();
+               case PROPOSAL_SUBSTRUCTURE:
+                       return (payload_t*)proposal_substructure_create();
+               case TRANSFORM_SUBSTRUCTURE:
+                       return (payload_t*)transform_substructure_create();
+               case TRANSFORM_ATTRIBUTE:
+                       return (payload_t*)transform_attribute_create();
                default:
                        return NULL;
        }
                default:
                        return NULL;
        }