]> git.ipfire.org Git - thirdparty/openssl.git/commit
load_key_certs_crls: Avoid reporting any spurious errors
authorTomas Mraz <tomas@openssl.org>
Wed, 30 Jun 2021 14:11:17 +0000 (16:11 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 2 Jul 2021 13:33:34 +0000 (15:33 +0200)
commitd82d1d11d4dafc97875969329a5100242441744d
tree9655385ff3d377ce4d9668128685261fc23dca60
parente58087842cf74164809977872eb2f7a62490d8dd
load_key_certs_crls: Avoid reporting any spurious errors

When there is other PEM data in between certs the OSSL_STORE_load
returns NULL and reports error. Avoid printing that error unless
there was nothing read at all.

Fixes #15945

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15949)
apps/lib/apps.c