summaryrefslogtreecommitdiffstats
path: root/test/sslapitest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/sslapitest.c')
-rw-r--r--test/sslapitest.c6
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);