mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-06 06:29:42 +00:00
Wrap more of ocspapitest.c in OPENSSL_NO_OCSP
make_dummy_resp() uses OCSP types, and get_cert_and_key() is unused once make_dummy_resp() is compiled out, so neither can be included in the build when OCSP is disabled and strict warnings are active. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4873)
This commit is contained in:
parent
88e09fe79b
commit
cb091295a9
@ -21,6 +21,7 @@
|
|||||||
static const char *certstr;
|
static const char *certstr;
|
||||||
static const char *privkeystr;
|
static const char *privkeystr;
|
||||||
|
|
||||||
|
#ifndef OPENSSL_NO_OCSP
|
||||||
static int get_cert_and_key(X509 **cert_out, EVP_PKEY **key_out)
|
static int get_cert_and_key(X509 **cert_out, EVP_PKEY **key_out)
|
||||||
{
|
{
|
||||||
BIO *certbio, *keybio;
|
BIO *certbio, *keybio;
|
||||||
@ -86,7 +87,6 @@ static OCSP_BASICRESP *make_dummy_resp(void)
|
|||||||
return bs_out;
|
return bs_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef OPENSSL_NO_OCSP
|
|
||||||
static int test_resp_signer(void)
|
static int test_resp_signer(void)
|
||||||
{
|
{
|
||||||
OCSP_BASICRESP *bs = NULL;
|
OCSP_BASICRESP *bs = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user