summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_time.c
diff options
context:
space:
mode:
authorbeck <>2022-06-27 13:54:58 +0000
committerbeck <>2022-06-27 13:54:58 +0000
commit2d10a680ffaa1829450f337b97f7a011e57fec1f (patch)
tree5c0b15ff90e68ca58b32edaff42c8dceb326d227 /src/lib/libcrypto/asn1/a_time.c
parent3a9b1012fb6b57946e4cf3ee7b795a4bdcb905cc (diff)
downloadopenbsd-2d10a680ffaa1829450f337b97f7a011e57fec1f.tar.gz
openbsd-2d10a680ffaa1829450f337b97f7a011e57fec1f.tar.bz2
openbsd-2d10a680ffaa1829450f337b97f7a011e57fec1f.zip
Add new time manipulation funcitons that OpenSSL has exposed that
the world seems to be using. Symbols.list changes and exposure to wait for minor bump ok jsing@ jca@
Diffstat (limited to 'src/lib/libcrypto/asn1/a_time.c')
-rw-r--r--src/lib/libcrypto/asn1/a_time.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/a_time.c b/src/lib/libcrypto/asn1/a_time.c
index cd6a790cac..03311e1b7f 100644
--- a/src/lib/libcrypto/asn1/a_time.c
+++ b/src/lib/libcrypto/asn1/a_time.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: a_time.c,v 1.33 2021/12/25 07:48:09 jsing Exp $ */ 1/* $OpenBSD: a_time.c,v 1.34 2022/06/27 13:54:57 beck Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -92,8 +92,7 @@ ASN1_TIME_free(ASN1_TIME *a)
92 ASN1_item_free((ASN1_VALUE *)a, &ASN1_TIME_it); 92 ASN1_item_free((ASN1_VALUE *)a, &ASN1_TIME_it);
93} 93}
94 94
95/* Public API in OpenSSL. Kept internal for now. */ 95int
96static int
97ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm) 96ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm)
98{ 97{
99 time_t now; 98 time_t now;