Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Wed, 6 May 2020 11:51:50 +0000 (13:51 +0200)
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>
Fri, 15 May 2020 18:20:08 +0000 (20:20 +0200)
commit6d382c74b375f1f8c44f04ec3de95ff781598a3b
tree4991b57879da3810fbf912c3d169232755380432
parent60d5331350a5e557908eed0ba7420dba2ad3b79f
Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c

This also adds the more flexible and general load_key_cert_crl()
as well as helper functions get_passwd(), cleanse(), and clear_free()
to be used also in apps/cmp.c etc.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/11755)
43 files changed:
apps/ca.c
apps/cmp.c
apps/cms.c
apps/crl.c
apps/dgst.c
apps/dsa.c
apps/ec.c
apps/enc.c
apps/include/apps.h
apps/include/opt.h
apps/lib/apps.c
apps/lib/s_cb.c
apps/ocsp.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/verify.c
apps/x509.c
crypto/store/store_lib.c
doc/man1/openssl-ca.pod.in
doc/man1/openssl-cms.pod.in
doc/man1/openssl-crl.pod.in
doc/man1/openssl-dgst.pod.in
doc/man1/openssl-ec.pod.in
doc/man1/openssl-ocsp.pod.in
doc/man1/openssl-pkey.pod.in
doc/man1/openssl-pkeyutl.pod.in
doc/man1/openssl-req.pod.in
doc/man1/openssl-rsa.pod.in
doc/man1/openssl-rsautl.pod.in
doc/man1/openssl-s_client.pod.in
doc/man1/openssl-s_server.pod.in
doc/man1/openssl-smime.pod.in
doc/man1/openssl-spkac.pod.in
doc/man1/openssl-verify.pod.in
doc/man1/openssl-x509.pod.in
doc/man1/openssl.pod