Do not use a hidden global for the EVP_ENCODE_CTX to save a calloc() call.
authorclaudio <claudio@openbsd.org>
Tue, 19 Apr 2022 19:01:19 +0000 (19:01 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 19 Apr 2022 19:01:19 +0000 (19:01 +0000)
commitc738bef7c1411593494cf0b28a28498ed665a857
tree580fb8151c98b1d49b57378a9d2d3cf6f13897bb
parent05ed64a0f4e2be965c129659728e5f011638eff2
Do not use a hidden global for the EVP_ENCODE_CTX to save a calloc() call.
Make this work concurrently by allocating and freeing the EVP_ENCODE_CTX
for every call to base64_decode(). This is not a hot path so the impact
is negligible.
OK tb@
usr.sbin/rpki-client/encoding.c