summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_lcl.h
diff options
context:
space:
mode:
authorbeck <>2015-10-02 15:04:45 +0000
committerbeck <>2015-10-02 15:04:45 +0000
commit0fdba47b730ef7a8d2107e42c5db7b2a3e008a8f (patch)
tree8649498e5e9fdda4e44ebac5989504efbcc57b61 /src/lib/libcrypto/x509/x509_lcl.h
parent6495b7869be4c5fea2bedea3e13b8ccdb320320e (diff)
downloadopenbsd-0fdba47b730ef7a8d2107e42c5db7b2a3e008a8f.tar.gz
openbsd-0fdba47b730ef7a8d2107e42c5db7b2a3e008a8f.tar.bz2
openbsd-0fdba47b730ef7a8d2107e42c5db7b2a3e008a8f.zip
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 'src/lib/libcrypto/x509/x509_lcl.h')
-rw-r--r--src/lib/libcrypto/x509/x509_lcl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/libcrypto/x509/x509_lcl.h b/src/lib/libcrypto/x509/x509_lcl.h
index b16df78ad7..0c1c130d5c 100644
--- a/src/lib/libcrypto/x509/x509_lcl.h
+++ b/src/lib/libcrypto/x509/x509_lcl.h
@@ -57,3 +57,4 @@
57 */ 57 */
58 58
59int x509_check_cert_time(X509_STORE_CTX *ctx, X509 *x, int quiet); 59int x509_check_cert_time(X509_STORE_CTX *ctx, X509 *x, int quiet);
60int asn1_time_parse(const char *, size_t, struct tm *, int);