Using ossl_assert makes the build fail with --strict-warnings
because the ossl_assert is declared with warn_unused_result.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14571)
* https://www.openssl.org/source/license.html
*/
+#include <assert.h>
#include <openssl/core.h>
#include <openssl/core_dispatch.h>
#include <openssl/core_names.h>
* that does not apply here. Here |prov| == NULL can happen only in
* case of a coding error.
*/
- (void)ossl_assert(prov != NULL);
+ assert(prov != NULL);
return (OPENSSL_CORE_CTX *)prov->libctx;
}