diff options
author | beck <> | 2016-11-02 17:41:15 +0000 |
---|---|---|
committer | beck <> | 2016-11-02 17:41:15 +0000 |
commit | 5fe82a9883fb999d2b8d6b23be3bff92756df5de (patch) | |
tree | 9494361b0538b9ab9ac29c5c2ef0f62f3712e377 /src | |
parent | 934ce95782b4bd2661634178fa37d7d852cec066 (diff) | |
download | openbsd-5fe82a9883fb999d2b8d6b23be3bff92756df5de.tar.gz openbsd-5fe82a9883fb999d2b8d6b23be3bff92756df5de.tar.bz2 openbsd-5fe82a9883fb999d2b8d6b23be3bff92756df5de.zip |
fix shadow declaration of time in parameter list.
ok jsing@
Diffstat (limited to 'src')
-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 | } |