openssl/crypto/store
Richard Levitte 2274d22d39 STORE: Distinguish public keys from private keys
While public keys and private keys use the same type (EVP_PKEY), just
with different contents, callers still need to distinguish between the
two to be able to know what functions to call with them (for example,
to be able to choose between EVP_PKEY_print_private() and
EVP_PKEY_print_public()).
The OSSL_STORE backend knows what it loaded, so it has the capacity to
inform.

Note that the same as usual still applies, that a private key EVP_PKEY
contains the public parts, but not necessarily the other way around.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12673)
2020-08-20 12:37:35 +02:00
..
build.info
loader_file.c STORE: Distinguish public keys from private keys 2020-08-20 12:37:35 +02:00
store_err.c STORE: Distinguish public keys from private keys 2020-08-20 12:37:35 +02:00
store_init.c Reorganize local header files 2019-09-28 20:26:35 +02:00
store_lib.c STORE: Distinguish public keys from private keys 2020-08-20 12:37:35 +02:00
store_local.h STORE: Distinguish public keys from private keys 2020-08-20 12:37:35 +02:00
store_register.c Add X509 related libctx changes. 2020-07-24 22:53:27 +10:00
store_strings.c STORE: Distinguish public keys from private keys 2020-08-20 12:37:35 +02:00