diff --git a/ssl/test/bssl_shim.cc b/ssl/test/bssl_shim.cc index ed17aa87..12231463 100644 --- a/ssl/test/bssl_shim.cc +++ b/ssl/test/bssl_shim.cc @@ -366,7 +366,7 @@ static bool GetCertificate(SSL *ssl, bssl::UniquePtr *out_x509, } } if (!config->ocsp_response.empty() && - !SSL_CTX_set_ocsp_response(ssl->ctx, + !SSL_CTX_set_ocsp_response(SSL_get_SSL_CTX(ssl), (const uint8_t *)config->ocsp_response.data(), config->ocsp_response.size())) { return false;