提交 b1f8affb 编写于 作者: B Ben Laurie

Correct time in seconds instead of minutes.

上级 efb41629
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册