diff options
Diffstat (limited to 'src/lib/libtls/tls_ocsp.c')
-rw-r--r-- | src/lib/libtls/tls_ocsp.c | 3 |
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: |