apps/ca: Properly handle certificate expiration times in do_updatedb
authorArmin Fuerst <armin@fuerst.priv.at>
Fri, 29 Jan 2021 18:16:14 +0000 (19:16 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 3 Feb 2021 10:27:36 +0000 (11:27 +0100)
commitdabea5447dc487983a50a40856f731db0db17a8e
treea18d3dbd4e4f7df0e514a124016cdd959107b267
parent2d8109f5f8205ac247630f397582727b9682be38
apps/ca: Properly handle certificate expiration times in do_updatedb

Fixes #13944

   + changed ASN1_UTCTIME to ASN1_TIME
   + removed all Y2K code from do_updatedb
   + changed compare to ASN1_TIME_compare

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14026)
apps/ca.c