|
21 | 21 | static char *cert = NULL;
|
22 | 22 | static char *privkey = NULL;
|
23 | 23 |
|
| 24 | +#ifndef OPENSSL_NO_OCSP |
24 | 25 | static const unsigned char orespder[] = "Dummy OCSP Response";
|
25 | 26 | static int ocsp_server_called = 0;
|
26 | 27 | static int ocsp_client_called = 0;
|
27 | 28 |
|
28 | 29 | static int cdummyarg = 1;
|
29 | 30 | static X509 *ocspcert = NULL;
|
| 31 | +#endif |
30 | 32 |
|
31 | 33 | #define NUM_EXTRA_CERTS 40
|
32 | 34 |
|
@@ -116,6 +118,7 @@ static int test_large_message_dtls(void)
|
116 | 118 | }
|
117 | 119 | #endif
|
118 | 120 |
|
| 121 | +#ifndef OPENSSL_NO_OCSP |
119 | 122 | static int ocsp_server_cb(SSL *s, void *arg)
|
120 | 123 | {
|
121 | 124 | int *argi = (int *)arg;
|
@@ -167,6 +170,7 @@ static int ocsp_client_cb(SSL *s, void *arg)
|
167 | 170 | return 1;
|
168 | 171 | }
|
169 | 172 |
|
| 173 | + |
170 | 174 | static int test_tlsext_status_type(void)
|
171 | 175 | {
|
172 | 176 | SSL_CTX *cctx = NULL, *sctx = NULL;
|
@@ -349,6 +353,7 @@ static int test_tlsext_status_type(void)
|
349 | 353 |
|
350 | 354 | return testresult;
|
351 | 355 | }
|
| 356 | +#endif /* ndef OPENSSL_NO_OCSP */ |
352 | 357 |
|
353 | 358 | typedef struct ssl_session_test_fixture {
|
354 | 359 | const char *test_case_name;
|
@@ -866,7 +871,9 @@ int main(int argc, char *argv[])
|
866 | 871 | #ifndef OPENSSL_NO_DTLS
|
867 | 872 | ADD_TEST(test_large_message_dtls);
|
868 | 873 | #endif
|
| 874 | +#ifndef OPENSSL_NO_OCSP |
869 | 875 | ADD_TEST(test_tlsext_status_type);
|
| 876 | +#endif |
870 | 877 | ADD_TEST(test_session_with_only_int_cache);
|
871 | 878 | ADD_TEST(test_session_with_only_ext_cache);
|
872 | 879 | ADD_TEST(test_session_with_both_cache);
|
|
0 commit comments