if (!ossl_assert(ptr != NULL)) {
ERR_raise(ERR_LIB_WHATEVER, ERR_R_PASSED_NULL_PARAMETER);
return 0;
}
If the project decides to do this, I would like a configure option to ONLY turn on ossl_assert so that previous behavior can be restored without debug code penalties.