Backwards-compatibility subject to OPENSSL_API_COMPAT