summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/asn1_locl.h
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2015-10-02 15:04:46 +0000
committerBob Beck <beck@cvs.openbsd.org>2015-10-02 15:04:46 +0000
commit36d31567ad286ca3b7233c8d6992596bc96b16dd (patch)
treed02f4e8544da6a1df65f03278a4f2b47cc463bad /lib/libcrypto/asn1/asn1_locl.h
parent4c703c73457b4f64542be3e2c7f355502cc808c9 (diff)
Flense the greasy black guts of unreadble string parsing code out of three areas
in asn1 and x509 code, all dealing with an ASN1_TIME. This brings the parsing together in one function that converts into a struct tm. While we are at it this also brings us into conformance with RFC 5280 for times allowed in an X509 cert, as OpenSSL is very liberal with what it allows. input and fixes from deraadt@ jsing@ guethther@ and others. ok krw@, guenther@, jsing@
Diffstat (limited to 'lib/libcrypto/asn1/asn1_locl.h')
-rw-r--r--lib/libcrypto/asn1/asn1_locl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libcrypto/asn1/asn1_locl.h b/lib/libcrypto/asn1/asn1_locl.h
index c6c80aa6aa2..d4994c7cee5 100644
--- a/lib/libcrypto/asn1/asn1_locl.h
+++ b/lib/libcrypto/asn1/asn1_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asn1_locl.h,v 1.5 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: asn1_locl.h,v 1.6 2015/10/02 15:04:45 beck Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -58,6 +58,10 @@
/* Internal ASN1 structures and functions: not for application use */
+char * gentime_string_from_tm(struct tm *tm);
+char * utctime_string_from_tm(struct tm *tm);
+int asn1_time_parse(const char *, size_t, struct tm *, int);
+
/* ASN1 print context structure */
struct asn1_pctx_st {