openssl/crypto/encode_decode
Richard Levitte cbcbac644c ENCODER: Don't pass libctx to OSSL_ENCODER_CTX_new_by_EVP_PKEY()
The passed 'pkey' already contains a library context, and the encoder
implementations should be found within the same context, so passing an
explicit library context seems unnecessary, and potentially dangerous.

It should be noted that it's possible to pass an EVP_PKEY with a
legacy internal key.  The condition there is that it doesn't have a
library context assigned to it, so the NULL library context is used
automatically, thus requiring that appropriate encoders are available
through that context.

Fixes #13544

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13545)
2020-12-02 13:36:49 +01:00
..
build.info CORE: Generalise internal pass phrase prompter 2020-08-24 10:02:25 +02:00
decoder_err.c ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
decoder_lib.c DECODER: Add tracing 2020-11-11 11:42:06 +01:00
decoder_meth.c DECODER: Add support for OSSL_FUNC_decoder_does_selection() 2020-11-11 11:42:06 +01:00
decoder_pkey.c Fix double-free in decoder_pkey.c 2020-11-24 12:10:40 +01:00
encoder_err.c ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
encoder_lib.c ENCODER: Add tracing 2020-11-11 12:43:27 +01:00
encoder_local.h ENCODER: Add support for OSSL_FUNC_encoder_does_selection() 2020-11-11 12:43:27 +01:00
encoder_meth.c ENCODER: Add support for OSSL_FUNC_encoder_does_selection() 2020-11-11 12:43:27 +01:00
encoder_pkey.c ENCODER: Don't pass libctx to OSSL_ENCODER_CTX_new_by_EVP_PKEY() 2020-12-02 13:36:49 +01:00