summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_ocsp.c
diff options
context:
space:
mode:
authorbeck <>2016-11-04 18:07:24 +0000
committerbeck <>2016-11-04 18:07:24 +0000
commit3b8a78795bef4ca09dc876e28a533d702bf5275d (patch)
tree19909c3874aacc91f295043d55b118a7fe7567e8 /src/lib/libtls/tls_ocsp.c
parent145c17d7875703f3317c0294c215fc4aa38911a8 (diff)
downloadopenbsd-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_ocsp.c')
-rw-r--r--src/lib/libtls/tls_ocsp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libtls/tls_ocsp.c b/src/lib/libtls/tls_ocsp.c
index af65771f7c..52e90364a7 100644
--- a/src/lib/libtls/tls_ocsp.c
+++ b/src/lib/libtls/tls_ocsp.c
@@ -63,7 +63,7 @@ tls_ocsp_asn1_parse_time(struct tls *ctx, ASN1_GENERALIZEDTIME *gt, time_t *gt_t
63 if (gt == NULL) 63 if (gt == NULL)
64 return -1; 64 return -1;
65 /* RFC 6960 specifies that all times in OCSP must be GENERALIZEDTIME */ 65 /* RFC 6960 specifies that all times in OCSP must be GENERALIZEDTIME */
66 if (asn1_time_parse(gt->data, gt->length, &tm, 66 if (ASN1_time_parse(gt->data, gt->length, &tm,
67 V_ASN1_GENERALIZEDTIME) == -1) 67 V_ASN1_GENERALIZEDTIME) == -1)
68 return -1; 68 return -1;
69 if ((*gt_time = timegm(&tm)) == -1) 69 if ((*gt_time = timegm(&tm)) == -1)
@@ -258,7 +258,6 @@ tls_ocsp_verify_response(struct tls *ctx, OCSP_RESPONSE *resp)
258 OCSP_crl_reason_str(crl_reason)); 258 OCSP_crl_reason_str(crl_reason));
259 goto error; 259 goto error;
260 } 260 }
261
262 ret = 0; 261 ret = 0;
263 262
264 error: 263 error: