Make the -inform option to be respected if possible
authorTomas Mraz <tomas@openssl.org>
Fri, 30 Apr 2021 14:57:53 +0000 (16:57 +0200)
committerMatt Caswell <matt@openssl.org>
Thu, 6 May 2021 10:43:32 +0000 (11:43 +0100)
commitd382e79632677f2457025be3d820e08d7ea12d85
tree3a429b630ec1cce9656ee67434324c6930c677f4
parentb86fa8c55682169c88e14e616170d6caeb208865
Make the -inform option to be respected if possible

Add OSSL_STORE_PARAM_INPUT_TYPE and make it possible to be
set when OSSL_STORE_open_ex() or OSSL_STORE_attach() is called.

The input type format is enforced only in case the file
type file store is used.

By default we use FORMAT_UNDEF meaning the input type
is not enforced.

Fixes #14569

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15100)
38 files changed:
apps/ca.c
apps/cmp.c
apps/cms.c
apps/crl.c
apps/dgst.c
apps/dsa.c
apps/dsaparam.c
apps/ec.c
apps/ecparam.c
apps/gendsa.c
apps/include/apps.h
apps/lib/apps.c
apps/lib/s_cb.c
apps/ocsp.c
apps/pkcs8.c
apps/pkey.c
apps/pkeyutl.c
apps/req.c
apps/rsa.c
apps/rsautl.c
apps/s_client.c
apps/s_server.c
apps/smime.c
apps/spkac.c
apps/storeutl.c
apps/verify.c
apps/x509.c
crypto/pem/pem_pkey.c
crypto/store/store_lib.c
crypto/x509/by_store.c
doc/man3/OSSL_STORE_attach.pod
doc/man3/OSSL_STORE_open.pod
include/openssl/core_names.h
include/openssl/store.h
providers/fips-sources.checksums
providers/fips.checksum
providers/implementations/storemgmt/file_store.c
test/ossl_store_test.c