mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
f99659535d
So far, decoder implementations would return true (1) for a successful decode all the way, including what the callback it called returned, and false (0) in all other cases. This construction didn't allow to stop to decoding process on fatal errors, nor to choose what to report in the provider code. This is now changed so that decoders implementations are made to return false only on errors that should stop the decoding process from carrying on with other implementations, and return true for all other cases, even if that didn't result in a constructed object (EVP_PKEY for example), essentially making it OK to return "empty handed". The success of the decoding process is now all about successfully constructing the final object, rather than about the return value of the decoding chain. If no construction is attempted, the central decoding processing code concludes that whatever the input consisted of, it's not supported by the available decoder implementations. Fixes #14423 Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14834) |
||
---|---|---|
.. | ||
build.info | ||
decoder_err.c | ||
decoder_lib.c | ||
decoder_meth.c | ||
decoder_pkey.c | ||
encoder_err.c | ||
encoder_lib.c | ||
encoder_local.h | ||
encoder_meth.c | ||
encoder_pkey.c |