diff options
Diffstat (limited to 'src/lib/libtls/tls_ocsp.c')
| -rw-r--r-- | src/lib/libtls/tls_ocsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libtls/tls_ocsp.c b/src/lib/libtls/tls_ocsp.c index 0a3d50759f..af559c44c9 100644 --- a/src/lib/libtls/tls_ocsp.c +++ b/src/lib/libtls/tls_ocsp.c | |||
| @@ -56,7 +56,7 @@ tls_ocsp_ctx_free(struct tls_ocsp_ctx *ocsp_ctx) | |||
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | static int | 58 | static int |
| 59 | tls_ocsp_asn1_parse_time(struct tls *ctx, ASN1_GENERALIZEDTIME *gt, time_t *time) | 59 | tls_ocsp_asn1_parse_time(struct tls *ctx, ASN1_GENERALIZEDTIME *gt, time_t *gt_time) |
| 60 | { | 60 | { |
| 61 | struct tm tm; | 61 | struct tm tm; |
| 62 | 62 | ||
| @@ -66,7 +66,7 @@ tls_ocsp_asn1_parse_time(struct tls *ctx, ASN1_GENERALIZEDTIME *gt, time_t *time | |||
| 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 ((*time = timegm(&tm)) == -1) | 69 | if ((*gt_time = timegm(&tm)) == -1) |
| 70 | return -1; | 70 | return -1; |
| 71 | return 0; | 71 | return 0; |
| 72 | } | 72 | } |
