mirror of
https://github.com/openssl/openssl.git
synced 2024-12-21 06:09:35 +08:00
a517edec03
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)
6 lines
213 B
Plaintext
6 lines
213 B
Plaintext
SOURCE[../../libcrypto]=encoder_meth.c encoder_lib.c encoder_pkey.c
|
|
SOURCE[../../libcrypto]=decoder_meth.c decoder_lib.c decoder_pkey.c
|
|
|
|
SOURCE[../../libcrypto]=encoder_err.c
|
|
SOURCE[../../libcrypto]=decoder_err.c
|