[openssl/openssl] 22b486: Finer grained error records for provider load/init...
Richard Levitte
noreply at github.com
Tue Oct 25 11:21:54 UTC 2022
Branch: refs/heads/openssl-3.1
Home: https://github.com/openssl/openssl
Commit: 22b486e2ac07463b29755fb227a913f09bddc5d2
https://github.com/openssl/openssl/commit/22b486e2ac07463b29755fb227a913f09bddc5d2
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