diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2022-06-27 13:54:59 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2022-06-27 13:54:59 +0000 |
commit | f62a3bea018145885d3967c58d6482aed22446de (patch) | |
tree | b8baa2b745d1cf9c3c38b205e1fa34103035344d /lib/libcrypto/asn1/asn1.h | |
parent | f4a85b036b3fc5b2eb6699352c17eb1a18912ce3 (diff) |
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 'lib/libcrypto/asn1/asn1.h')
-rw-r--r-- | lib/libcrypto/asn1/asn1.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libcrypto/asn1/asn1.h b/lib/libcrypto/asn1/asn1.h index 0db0b1d8fee..3ff3f51d34d 100644 --- a/lib/libcrypto/asn1/asn1.h +++ b/lib/libcrypto/asn1/asn1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1.h,v 1.64 2022/06/25 16:15:18 jsing Exp $ */ +/* $OpenBSD: asn1.h,v 1.65 2022/06/27 13:54:57 beck Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -719,6 +719,13 @@ ASN1_TIME *d2i_ASN1_TIME(ASN1_TIME **a, const unsigned char **in, long len); int i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **out); extern const ASN1_ITEM ASN1_TIME_it; +#ifdef LIBRESSL_INTERNAL +int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm); +int ASN1_TIME_compare(const ASN1_TIME *t1, const ASN1_TIME *t2); +int ASN1_TIME_cmp_time_t(const ASN1_TIME *s, time_t t2); +int ASN1_TIME_normalize(ASN1_TIME *t); +int ASN1_TIME_set_string_x509(ASN1_TIME *time, const char *str); +#endif int ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from, const ASN1_TIME *to); |