[openssl/openssl] 840a82: Finer grained error records for provider load/init...
Richard Levitte
noreply at github.com
Tue Oct 25 11:11:52 UTC 2022
Branch: refs/heads/openssl-3.0
Home: https://github.com/openssl/openssl
Commit: 840a82982976a0ee4336a3ee0dc4f389aac14b01
https://github.com/openssl/openssl/commit/840a82982976a0ee4336a3ee0dc4f389aac14b01
Author: Richard Levitte <levitte at openssl.org>
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 <beldmit at gmail.com>
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19419)
(cherry picked from commit 2d23ba14630551ee347acafcab81fa1a290c6504)
More information about the openssl-commits
mailing list