summaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/openssl/asn1.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/openssl/asn1.h b/include/openssl/asn1.h
index 07db817d42..5863fef15f 100644
--- a/include/openssl/asn1.h
+++ b/include/openssl/asn1.h
@@ -599,6 +599,10 @@ DECLARE_ASN1_FUNCTIONS(ASN1_UTCTIME)
DECLARE_ASN1_FUNCTIONS(ASN1_GENERALIZEDTIME)
DECLARE_ASN1_FUNCTIONS(ASN1_TIME)
+DECLARE_ASN1_DUP_FUNCTION(ASN1_TIME)
+DECLARE_ASN1_DUP_FUNCTION(ASN1_UTCTIME)
+DECLARE_ASN1_DUP_FUNCTION(ASN1_GENERALIZEDTIME)
+
DECLARE_ASN1_ITEM(ASN1_OCTET_STRING_NDEF)
ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);