Merge pull request #7165 from sfc-gh-jshim/mtls-test-helpers
Fix Mac build failing from boringssl
This commit is contained in:
commit
0d86a959c8
|
@ -260,9 +260,9 @@ CertAndKeyNative makeCertNative(CertSpecRef spec, CertAndKeyNative issuer) {
|
|||
throw tls_error();
|
||||
}
|
||||
#ifdef OPENSSL_IS_BORINGSSL
|
||||
auto ext = ::X509V3_EXT_conf_nid(nullptr, &ctx, extNid, const_cast<char*>(extValue.c_str()));
|
||||
auto ext = ::X509V3_EXT_nconf_nid(nullptr, &ctx, extNid, const_cast<char*>(extValue.c_str()));
|
||||
#else
|
||||
auto ext = ::X509V3_EXT_conf_nid(nullptr, &ctx, extNid, extValue.c_str());
|
||||
auto ext = ::X509V3_EXT_nconf_nid(nullptr, &ctx, extNid, extValue.c_str());
|
||||
#endif
|
||||
OSSL_ASSERT(ext);
|
||||
auto extGuard = ScopeExit([ext]() { ::X509_EXTENSION_free(ext); });
|
||||
|
|
Loading…
Reference in New Issue