diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2016-11-02 17:41:16 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2016-11-02 17:41:16 +0000 |
commit | d762c53b78ad79b758b08c309110f2c877c18964 (patch) | |
tree | 5ff2efbec3a02d6740fd7114230569ececccafe5 /lib | |
parent | e2b4fad880e2037837d35a2df549f0478946b3c2 (diff) |
fix shadow declaration of time in parameter list.
ok jsing@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libtls/tls_ocsp.c | 4 |
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; } |