From: Dr. Stephen Henson Date: Fri, 23 Sep 2011 13:39:45 +0000 (+0000) Subject: PR: 2606 X-Git-Tag: OpenSSL_1_0_0f~33 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c11ada6c99a730392d70b28e3f831ceadeba56c1;p=oweals%2Fopenssl.git PR: 2606 Submitted by: Christoph Viethen Reviewed by: steve Handle timezones correctly in UTCTime. --- diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 5a0b0249b4..701ec565e9 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -1732,7 +1732,7 @@ int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) atm.length=sizeof(buff2); atm.data=(unsigned char *)buff2; - if (X509_time_adj(&atm,-offset*60, cmp_time) == NULL) + if (X509_time_adj(&atm, offset*60, cmp_time) == NULL) return 0; if (ctm->type == V_ASN1_UTCTIME)