diff options
author | Benjamin Kaduk <bkaduk@akamai.com> | 2017-12-07 16:37:54 -0600 |
---|---|---|
committer | Ben Kaduk <kaduk@mit.edu> | 2017-12-08 09:16:36 -0600 |
commit | cb091295a9ff16f4de1a8b00be444d40ac068d04 (patch) | |
tree | 1bcc93d51e388aa4bcebaa13da4bb0096da180ba /test | |
parent | 88e09fe79b909fbfe266e87a2731f96c197726fb (diff) |
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)
Diffstat (limited to 'test')
-rw-r--r-- | test/ocspapitest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ocspapitest.c b/test/ocspapitest.c index aa477a8f49..43b03e3f51 100644 --- a/test/ocspapitest.c +++ b/test/ocspapitest.c @@ -21,6 +21,7 @@ static const char *certstr; static const char *privkeystr; +#ifndef OPENSSL_NO_OCSP static int get_cert_and_key(X509 **cert_out, EVP_PKEY **key_out) { BIO *certbio, *keybio; @@ -86,7 +87,6 @@ static OCSP_BASICRESP *make_dummy_resp(void) return bs_out; } -#ifndef OPENSSL_NO_OCSP static int test_resp_signer(void) { OCSP_BASICRESP *bs = NULL; |