mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Correct time in seconds instead of minutes.
This commit is contained in:
parent
efb416299f
commit
b1f8affbd5
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user