summaryrefslogtreecommitdiff
path: root/lib/libtls/tls_ocsp.c
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2016-11-02 17:41:16 +0000
committerBob Beck <beck@cvs.openbsd.org>2016-11-02 17:41:16 +0000
commitd762c53b78ad79b758b08c309110f2c877c18964 (patch)
tree5ff2efbec3a02d6740fd7114230569ececccafe5 /lib/libtls/tls_ocsp.c
parente2b4fad880e2037837d35a2df549f0478946b3c2 (diff)
fix shadow declaration of time in parameter list.
ok jsing@
Diffstat (limited to 'lib/libtls/tls_ocsp.c')
-rw-r--r--lib/libtls/tls_ocsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtls/tls_ocsp.c b/lib/libtls/tls_ocsp.c
index 0a3d50759fe..af559c44c99 100644
--- a/lib/libtls/tls_ocsp.c
+++ b/lib/libtls/tls_ocsp.c
@@ -56,7 +56,7 @@ tls_ocsp_ctx_free(struct tls_ocsp_ctx *ocsp_ctx)
}
static int
-tls_ocsp_asn1_parse_time(struct tls *ctx, ASN1_GENERALIZEDTIME *gt, time_t *time)
+tls_ocsp_asn1_parse_time(struct tls *ctx, ASN1_GENERALIZEDTIME *gt, time_t *gt_time)
{
struct tm tm;
@@ -66,7 +66,7 @@ tls_ocsp_asn1_parse_time(struct tls *ctx, ASN1_GENERALIZEDTIME *gt, time_t *time
if (asn1_time_parse(gt->data, gt->length, &tm,
V_ASN1_GENERALIZEDTIME) == -1)
return -1;
- if ((*time = timegm(&tm)) == -1)
+ if ((*gt_time = timegm(&tm)) == -1)
return -1;
return 0;
}