[openssl-dev] ASN1_UTCTIME_cmp_time_t behavior changed from 0.9.8 to 1.0.2 ?
Dr. Stephen Henson
steve at openssl.org
Tue Mar 24 19:55:28 UTC 2015
On Tue, Mar 24, 2015, Susumu Sai wrote:
> time_t t;
> time(&t);
>
> ASN1_TIME *tmptm = ASN1_TIME_new();
> X509_gmtime_adj(tmptm, 0);
>
> // ? With 0.9.8, the return value ret = 1
> // ? With 1.0.2, the return value ret = -1
> int ret = ASN1_UTCTIME_cmp_time_t(tmptm, t);
>
> 0.9.8 and 1.0.2 return different values. Is this as expected?
This is a bug in 1.0.2 which is fixed in 1.0.2a.
Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
More information about the openssl-dev
mailing list