forked from wolfSSL/wolfssl
test: gate ocsp test when SHA-1 is disabled
tests blobs contains sha-1 hashes in certificate status
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
#include <wolfssl/ocsp.h>
|
#include <wolfssl/ocsp.h>
|
||||||
#include <wolfssl/ssl.h>
|
#include <wolfssl/ssl.h>
|
||||||
|
|
||||||
#if defined(HAVE_OCSP)
|
#if defined(HAVE_OCSP) && !defined(NO_SHA)
|
||||||
struct ocsp_cb_ctx {
|
struct ocsp_cb_ctx {
|
||||||
byte* response;
|
byte* response;
|
||||||
int responseSz;
|
int responseSz;
|
||||||
@@ -158,12 +158,12 @@ int test_ocsp_response_parsing(void)
|
|||||||
|
|
||||||
return EXPECT_SUCCESS();
|
return EXPECT_SUCCESS();
|
||||||
}
|
}
|
||||||
#else /* HAVE_OCSP */
|
#else /* HAVE_OCSP && !NO_SHA */
|
||||||
int test_ocsp_response_parsing(void)
|
int test_ocsp_response_parsing(void)
|
||||||
{
|
{
|
||||||
return TEST_SKIPPED;
|
return TEST_SKIPPED;
|
||||||
}
|
}
|
||||||
#endif /* HAVE_OCSP */
|
#endif /* HAVE_OCSP && !NO_SHA */
|
||||||
|
|
||||||
#if defined(HAVE_OCSP) && (defined(OPENSSL_ALL) || defined(OPENSSL_EXTRA))
|
#if defined(HAVE_OCSP) && (defined(OPENSSL_ALL) || defined(OPENSSL_EXTRA))
|
||||||
static int test_ocsp_create_x509store(WOLFSSL_X509_STORE** store,
|
static int test_ocsp_create_x509store(WOLFSSL_X509_STORE** store,
|
||||||
|
Reference in New Issue
Block a user