summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/asn1.h
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2017-05-06 17:13:00 +0000
committerBob Beck <beck@cvs.openbsd.org>2017-05-06 17:13:00 +0000
commitd93a04bb9d81e26d27adab732e49a15b8fcf1c4d (patch)
treeaff0f7492ee9bcdc01dc348a48caef1114899f19 /lib/libcrypto/asn1/asn1.h
parentc516683958b4d72861009bff5553d9bc204f76f1 (diff)
Add ASN1_TIME_set_tm to set an asn1 from a struct tm *
ok jsing@
Diffstat (limited to 'lib/libcrypto/asn1/asn1.h')
-rw-r--r--lib/libcrypto/asn1/asn1.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/asn1/asn1.h b/lib/libcrypto/asn1/asn1.h
index e35c865e1f0..da16d5c5292 100644
--- a/lib/libcrypto/asn1/asn1.h
+++ b/lib/libcrypto/asn1/asn1.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asn1.h,v 1.42 2016/12/30 16:29:45 jsing Exp $ */
+/* $OpenBSD: asn1.h,v 1.43 2017/05/06 17:12:59 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -939,6 +939,7 @@ extern const ASN1_ITEM ASN1_TIME_it;
extern const ASN1_ITEM ASN1_OCTET_STRING_NDEF_it;
ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);
+ASN1_TIME *ASN1_TIME_set_tm(ASN1_TIME *s, struct tm *tm);
ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t, int offset_day,
long offset_sec);
int ASN1_TIME_check(ASN1_TIME *t);