This will only be required until everything is moved to providers and a NULL
provider pointer won't be possible.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9662)
OPENSSL_CTX *ossl_provider_library_context(const OSSL_PROVIDER *prov)
{
- return prov->libctx;
+ /* TODO(3.0) just: return prov->libctx; */
+ return prov != NULL ? prov->libctx : NULL;
}
/* Wrappers around calls to the provider */