Add a return value to hasher_t.get_hash()
[strongswan.git] / src / libstrongswan / crypto / transform.c
index af40f4d..1e108f1 100644 (file)
 
 #include <crypto/transform.h>
 
-ENUM_BEGIN(transform_type_names, UNDEFINED_TRANSFORM_TYPE, RANDOM_NUMBER_GENERATOR,
+ENUM_BEGIN(transform_type_names, UNDEFINED_TRANSFORM_TYPE, AEAD_ALGORITHM,
        "UNDEFINED_TRANSFORM_TYPE",
        "HASH_ALGORITHM",
-       "RANDOM_NUMBER_GENERATOR");
-ENUM_NEXT(transform_type_names, ENCRYPTION_ALGORITHM, EXTENDED_SEQUENCE_NUMBERS, RANDOM_NUMBER_GENERATOR,
+       "RANDOM_NUMBER_GENERATOR",
+       "AEAD_ALGORITHM");
+ENUM_NEXT(transform_type_names, ENCRYPTION_ALGORITHM, EXTENDED_SEQUENCE_NUMBERS, AEAD_ALGORITHM,
        "ENCRYPTION_ALGORITHM",
        "PSEUDO_RANDOM_FUNCTION",
        "INTEGRITY_ALGORITHM",
@@ -27,3 +28,8 @@ ENUM_NEXT(transform_type_names, ENCRYPTION_ALGORITHM, EXTENDED_SEQUENCE_NUMBERS,
        "EXTENDED_SEQUENCE_NUMBERS");
 ENUM_END(transform_type_names, EXTENDED_SEQUENCE_NUMBERS);
 
+
+ENUM(extended_sequence_numbers_names, NO_EXT_SEQ_NUMBERS, EXT_SEQ_NUMBERS,
+       "NO_EXT_SEQ",
+       "EXT_SEQ",
+);