acme-client: use ASN1_TIME_to_tm()
authortb <tb@openbsd.org>
Thu, 15 Dec 2022 16:59:04 +0000 (16:59 +0000)
committertb <tb@openbsd.org>
Thu, 15 Dec 2022 16:59:04 +0000 (16:59 +0000)
commit760a94e27ca21abd15717f0c77f8294e0caf93d0
tree510149fad8cf1a93745b594e916131a07c9e3658
parent70fdfbb3aacc77f71ba7aabd515baf0678ce04d2
acme-client: use ASN1_TIME_to_tm()

There is a hand-rolled, only minimally checked implementation converting
an ASN1_TIME into a struc tm. beck has invested a lot of time improving
the time parsing inside libcrypto, so make use of that. That code is safer,
better vetted and more correct.

ok florian
usr.sbin/acme-client/revokeproc.c