From: Ben Laurie Date: Fri, 11 Feb 2000 16:08:40 +0000 (+0000) Subject: Correct time in seconds instead of minutes. X-Git-Tag: OpenSSL_0_9_5beta1~79 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=b1f8affbd5d480b28aa5a2dda324bdd74a49f421 Correct time in seconds instead of minutes. --- diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index c779dab376..ec25cf8d85 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -536,7 +536,7 @@ int X509_cmp_current_time(ASN1_UTCTIME *ctm) atm.length=sizeof(buff2); atm.data=(unsigned char *)buff2; - X509_gmtime_adj(&atm,-offset); + X509_gmtime_adj(&atm,-offset*60); i=(buff1[0]-'0')*10+(buff1[1]-'0'); if (i < 50) i+=100; /* cf. RFC 2459 */