summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_gentm.c
diff options
context:
space:
mode:
authorPaul Yang <kaishen.yy@antfin.com>2020-01-13 14:26:11 +0800
committerPaul Yang <kaishen.yy@antfin.com>2020-01-17 11:30:33 +0800
commitfe4309b0de64502398116f648cc7f2068e1a1537 (patch)
treea4bc6f6fe4b87f1984ae05e94fe1ff2e5362a0c6 /crypto/asn1/a_gentm.c
parent83c51006759437b8643264c5fb748030fd6aaef5 (diff)
Add duplication APIs to ASN1_TIME and related types
Fixes #10600. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/10823)
Diffstat (limited to 'crypto/asn1/a_gentm.c')
-rw-r--r--crypto/asn1/a_gentm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/asn1/a_gentm.c b/crypto/asn1/a_gentm.c
index d82126b0e4..4d31fef8fd 100644
--- a/crypto/asn1/a_gentm.c
+++ b/crypto/asn1/a_gentm.c
@@ -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)