]> git.ipfire.org Git - thirdparty/openssl.git/commit
Don't forget the type of thing we are loading
authorMatt Caswell <matt@openssl.org>
Thu, 11 Feb 2021 16:32:58 +0000 (16:32 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 18 Feb 2021 16:05:22 +0000 (16:05 +0000)
commit3a2171f6aa0f72ca95210fa80d92214315d1e744
tree4ae71886b5070ef219b147da1492b8ddbc1f40fa
parent3262300a2c2351c6706f37b89fef015430988a31
Don't forget the type of thing we are loading

The apps helper function load_key_certs_crls() is a general purpose
function for loading different types of objects from a given URI. It
sets up an OSSL_STORE and calls OSSL_STORE_expect() so that the store
knows what type of thing to expect to load. Unfortunately this wasn't
working and was always setting "expect" to 0 - which means "anything".

Fixes #13709

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14191)
apps/lib/apps.c
test/recipes/20-test_cli_fips.t