Register HASH_V1 in payload factory
authorMartin Willi <martin@revosec.ch>
Mon, 21 Nov 2011 15:41:16 +0000 (16:41 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:30:46 +0000 (17:30 +0100)
src/libcharon/encoding/payloads/payload.c

index 69fd47b..83fd1cb 100644 (file)
@@ -34,6 +34,7 @@
 #include <encoding/payloads/cp_payload.h>
 #include <encoding/payloads/configuration_attribute.h>
 #include <encoding/payloads/eap_payload.h>
 #include <encoding/payloads/cp_payload.h>
 #include <encoding/payloads/configuration_attribute.h>
 #include <encoding/payloads/eap_payload.h>
+#include <encoding/payloads/hash_payload.h>
 #include <encoding/payloads/unknown_payload.h>
 
 
 #include <encoding/payloads/unknown_payload.h>
 
 
@@ -217,6 +218,8 @@ payload_t *payload_create(payload_type_t type)
                case VENDOR_ID:
                case VENDOR_ID_V1:
                        return (payload_t*)vendor_id_payload_create(type);
                case VENDOR_ID:
                case VENDOR_ID_V1:
                        return (payload_t*)vendor_id_payload_create(type);
+               case HASH_V1:
+                       return (payload_t*)hash_payload_create();
                case CONFIGURATION:
                        return (payload_t*)cp_payload_create();
                case CONFIGURATION_ATTRIBUTE:
                case CONFIGURATION:
                        return (payload_t*)cp_payload_create();
                case CONFIGURATION_ATTRIBUTE: