Branch: refs/heads/openssl-3.0
Home: https://github.com/openssl/openssl
Commit: 840a82982976a0ee4336a3ee0dc4f389aac14b01
https://github.com/openssl/openssl/commit/840a82982976a0ee4336a3ee0dc4f389aac14b01
Author: Richard Levitte <[email protected]>
Date: 2022-10-25 (Tue, 25 Oct 2022)
Changed paths:
M crypto/provider_core.c
Log Message:
-----------
Finer grained error records for provider load/init failures
When a provider is activated, these three cases would record that the
provider init function failed (implying that it was called):
- failure to load the provider module (in case it's a dynamically
loadable module)
- the init function not being present (i.e. being NULL)
- the init function being called and returning an error indication
(i.e. returning a false value)
This is confusing.
Separating the three cases so that they record different errors will
make it easier to determine causes of failure.
Reviewed-by: Dmitry Belyavskiy <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from https://github.com/openssl/openssl/pull/19419)
(cherry picked from commit 2d23ba14630551ee347acafcab81fa1a290c6504)