diff options
author | Richard Levitte <levitte@openssl.org> | 2017-01-04 09:16:07 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-01-04 15:27:00 +0100 |
commit | 8f8c11d83f39197e373ae6cc75782f5cfc4467d7 (patch) | |
tree | 46e897e5b7af051f644d1b3eec88d18ed65c2cc3 /test/sslapitest.c | |
parent | 327d38d0ac1da6f6d7ad009260061630f4ec0c82 (diff) |
Don't build OCSP stuff when OCSP is disabled
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2173)
Diffstat (limited to 'test/sslapitest.c')
-rw-r--r-- | test/sslapitest.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sslapitest.c b/test/sslapitest.c index d20aec8ebb..9e3326d2e8 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -23,12 +23,14 @@ static char *cert = NULL; static char *privkey = NULL; +#ifndef OPENSSL_NO_OCSP static const unsigned char orespder[] = "Dummy OCSP Response"; static int ocsp_server_called = 0; static int ocsp_client_called = 0; static int cdummyarg = 1; static X509 *ocspcert = NULL; +#endif #define NUM_EXTRA_CERTS 40 @@ -145,6 +147,7 @@ static int test_large_message_dtls(void) } #endif +#ifndef OPENSSL_NO_OCSP static int ocsp_server_cb(SSL *s, void *arg) { int *argi = (int *)arg; @@ -378,6 +381,7 @@ static int test_tlsext_status_type(void) return testresult; } +#endif typedef struct ssl_session_test_fixture { const char *test_case_name; @@ -1022,7 +1026,9 @@ int test_main(int argc, char *argv[]) #ifndef OPENSSL_NO_DTLS ADD_TEST(test_large_message_dtls); #endif +#ifndef OPENSSL_NO_OCSP ADD_TEST(test_tlsext_status_type); +#endif ADD_TEST(test_session_with_only_int_cache); ADD_TEST(test_session_with_only_ext_cache); ADD_TEST(test_session_with_both_cache); |