Refactor provider support for reporting errors
authorRichard Levitte <levitte@openssl.org>
Wed, 24 Jul 2019 11:37:42 +0000 (13:37 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 31 Jul 2019 04:45:04 +0000 (06:45 +0200)
commit49c6434673ca5e9413062851979cf6ed126c9f1c
tree82ac6bd1c2be7586e6e0e62a72fc353e22bfd4e2
parentadd8c8e9647a71cc755dea22490e2075e342624b
Refactor provider support for reporting errors

The core now supplies its own versions of ERR_new(), ERR_set_debug()
and ERR_vset_error().  This should suffice for a provider to have any
OpenSSL compatible functionlity it desires.

The main difference between the ERR functions and the core
counterparts is that the core counterparts take an OSSL_PROVIDER
parameter instead of the library number.  That way, providers do not
need to know what number they have been assigned, that information
stays in the core.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9452)
crypto/property/property_parse.c
crypto/provider_core.c
doc/man7/provider-base.pod
include/openssl/core_numbers.h