[openssl/openssl] 2d23ba: Finer grained error records for provider load/init...

Richard Levitte noreply at github.com
Thu Oct 20 16:14:50 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 2d23ba14630551ee347acafcab81fa1a290c6504
      https://github.com/openssl/openssl/commit/2d23ba14630551ee347acafcab81fa1a290c6504
  Author: Richard Levitte <levitte at openssl.org>
  Date:   2022-10-20 (Thu, 20 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)




More information about the openssl-commits mailing list