Fix regression in ASN1_UTCTIME_cmp_time_t
authorCarl Jackson <carl@avtok.com>
Sat, 31 Jan 2015 10:22:47 +0000 (02:22 -0800)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 15 Mar 2015 19:47:08 +0000 (19:47 +0000)
commit912c8c92b5e703b19a6508de15b229e9fe788656
treed46e084cbe7554335c1082c8c3f4ad0d93787abe
parent94be83127b08dc3977d2c14304aa61208db048d0
Fix regression in ASN1_UTCTIME_cmp_time_t

Previously, ASN1_UTCTIME_cmp_time_t would return 1 if s > t, -1 if
s < t, and 0 if s == t.

This behavior was broken in a refactor [0], resulting in the opposite
time comparison behavior.

[0]: 904348a4922333106b613754136305db229475ea

PR#3706

Reviewed-by: Stephen Henson <steve@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit da27006df06853a33b132133699a7aa9d4277920)
crypto/asn1/a_utctm.c