diff options
author | beck <> | 2016-11-04 18:07:24 +0000 |
---|---|---|
committer | beck <> | 2016-11-04 18:07:24 +0000 |
commit | 3b8a78795bef4ca09dc876e28a533d702bf5275d (patch) | |
tree | 19909c3874aacc91f295043d55b118a7fe7567e8 /src/lib/libtls/tls_conninfo.c | |
parent | 145c17d7875703f3317c0294c215fc4aa38911a8 (diff) | |
download | openbsd-3b8a78795bef4ca09dc876e28a533d702bf5275d.tar.gz openbsd-3b8a78795bef4ca09dc876e28a533d702bf5275d.tar.bz2 openbsd-3b8a78795bef4ca09dc876e28a533d702bf5275d.zip |
make public ASN1_time_parse and ASN1_time_tm_cmp to replace former hidden
functions.. document with a man page.
bump majors on libtls, libssl, libcrypto
ok jsing@ guenther@
Diffstat (limited to 'src/lib/libtls/tls_conninfo.c')
-rw-r--r-- | src/lib/libtls/tls_conninfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libtls/tls_conninfo.c b/src/lib/libtls/tls_conninfo.c index 5882a19cee..1bf4b2285b 100644 --- a/src/lib/libtls/tls_conninfo.c +++ b/src/lib/libtls/tls_conninfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_conninfo.c,v 1.11 2016/08/22 17:12:35 jsing Exp $ */ | 1 | /* $OpenBSD: tls_conninfo.c,v 1.12 2016/11/04 18:07:24 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> |
@@ -136,9 +136,9 @@ tls_get_peer_cert_times(struct tls *ctx, time_t *notbefore, | |||
136 | goto err; | 136 | goto err; |
137 | if ((after = X509_get_notAfter(ctx->ssl_peer_cert)) == NULL) | 137 | if ((after = X509_get_notAfter(ctx->ssl_peer_cert)) == NULL) |
138 | goto err; | 138 | goto err; |
139 | if (asn1_time_parse(before->data, before->length, &before_tm, 0) == -1) | 139 | if (ASN1_time_parse(before->data, before->length, &before_tm, 0) == -1) |
140 | goto err; | 140 | goto err; |
141 | if (asn1_time_parse(after->data, after->length, &after_tm, 0) == -1) | 141 | if (ASN1_time_parse(after->data, after->length, &after_tm, 0) == -1) |
142 | goto err; | 142 | goto err; |
143 | if ((*notbefore = timegm(&before_tm)) == -1) | 143 | if ((*notbefore = timegm(&before_tm)) == -1) |
144 | goto err; | 144 | goto err; |