Add duplication APIs to ASN1_TIME and related types
[openssl.git] / crypto / asn1 / a_gentm.c
index d82126b0e4f7a2ff93893eaf2095c2327ade54e9..4d31fef8fda1d61782132ebdad92b9b0a0f2c5dd 100644 (file)
@@ -16,6 +16,9 @@
 #include "internal/cryptlib.h"
 #include <openssl/asn1.h>
 #include "asn1_local.h"
+#include <openssl/asn1t.h>
+
+IMPLEMENT_ASN1_DUP_FUNCTION(ASN1_GENERALIZEDTIME)
 
 /* This is the primary function used to parse ASN1_GENERALIZEDTIME */
 int asn1_generalizedtime_to_tm(struct tm *tm, const ASN1_GENERALIZEDTIME *d)