mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
api.c: option conditions
This commit is contained in:
@@ -16849,17 +16849,17 @@ static void test_wolfSSL_HMAC(void)
|
||||
AssertNotNull(HMAC(EVP_sha256(), key, (int)sizeof(key), NULL, 0, hash, &len));
|
||||
AssertIntEQ(len, (int)WC_SHA256_DIGEST_SIZE);
|
||||
#endif
|
||||
#if defined(OPENSSL_EXTRA) && !defined(WOLFSSL_SHA224)
|
||||
#if defined(OPENSSL_EXTRA) && defined(WOLFSSL_SHA224)
|
||||
len = 0;
|
||||
AssertNotNull(HMAC(EVP_sha224(), key, (int)sizeof(key), NULL, 0, hash, &len));
|
||||
AssertIntEQ(len, (int)WC_SHA224_DIGEST_SIZE);
|
||||
#endif
|
||||
#if defined(OPENSSL_EXTRA) && !defined(WOLFSSL_SHA384) && !defined(WOLFSSL_SHA512)
|
||||
#if defined(OPENSSL_EXTRA) && (defined(WOLFSSL_SHA384) && defined(WOLFSSL_SHA512))
|
||||
len = 0;
|
||||
AssertNotNull(HMAC(EVP_sha384(), key, (int)sizeof(key), NULL, 0, hash, &len));
|
||||
AssertIntEQ(len, (int)WC_SHA384_DIGEST_SIZE);
|
||||
#endif
|
||||
#if defined(OPENSSL_EXTRA) && !defined(WOLFSSL_SHA512)
|
||||
#if defined(OPENSSL_EXTRA) && defined(WOLFSSL_SHA512)
|
||||
len = 0;
|
||||
AssertNotNull(HMAC(EVP_sha512(), key, (int)sizeof(key), NULL, 0, hash, &len));
|
||||
AssertIntEQ(len, (int)WC_SHA512_DIGEST_SIZE);
|
||||
|
Reference in New Issue
Block a user