openssl/providers/implementations
Richard Levitte a517edec03 CORE: Generalise internal pass phrase prompter
The pass phrase prompter that's part of OSSL_ENCODER and OSSL_DECODER
is really a passphrase callback bridge between the diverse forms of
prompters that exist within OpenSSL: pem_password_cb, ui_method and
OSSL_PASSPHRASE_CALLBACK.

This can be generalised, to be re-used by other parts of OpenSSL, and
to thereby allow the users to specify whatever form of pass phrase
callback they need, while being able to pass that on to other APIs
that are called internally, in the form that those APIs demand.

Additionally, we throw in the possibility to cache pass phrases during
a "session" (we leave it to each API to define what a "session" is).
This is useful for any API that implements discovery and therefore may
need to get the same password more than once, such as OSSL_DECODER and
OSSL_STORE.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12512)
2020-08-24 10:02:25 +02:00
..
asymciphers provider: add the unused paramater tag to the gettable and settable functions 2020-08-12 08:43:37 +10:00
ciphers Fix stitched ciphersuites in TLS1.0 2020-08-20 17:02:34 +01:00
digests provider: add the unused paramater tag to the gettable and settable functions 2020-08-12 08:43:37 +10:00
encode_decode CORE: Generalise internal pass phrase prompter 2020-08-24 10:02:25 +02:00
exchange provider: add the unused paramater tag to the gettable and settable functions 2020-08-12 08:43:37 +10:00
include/prov Rename OSSL_SERIALIZER / OSSL_DESERIALIZER to OSSL_ENCODE / OSSL_DECODE 2020-08-21 09:23:58 +02:00
kdfs Fix coverity CID #1465794 - Uninitialized pointer read in x942_encode_otherinfo() 2020-08-24 11:19:28 +10:00
keymgmt Add Explicit EC parameter support to providers. 2020-08-22 14:55:41 +10:00
macs provider: add the unused paramater tag to the gettable and settable functions 2020-08-12 08:43:37 +10:00
rands provider: add the unused paramater tag to the gettable and settable functions 2020-08-12 08:43:37 +10:00
signature Fix coverity CID #1458641 - Dereference before NULL check when setting ctx->flag_allow_md in rsa.c 2020-08-24 11:19:28 +10:00
build.info Rename OSSL_SERIALIZER / OSSL_DESERIALIZER to OSSL_ENCODE / OSSL_DECODE 2020-08-21 09:23:58 +02:00