Skip to content

Commit 849f288

Browse files
committed
Fix tests
1 parent 19487d5 commit 849f288

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/storage-upgrade-test-tpm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
run: |
5757
./autogen.sh
5858
./configure --enable-md5 --enable-cryptocb --enable-aescfb --enable-rsapss --enable-keygen --enable-pwdbased --enable-scrypt \
59-
C_EXTRA_FLAGS="-DWOLFSSL_PUBLIC_MP -DWC_RSA_DIRECT -DHAVE_AES_ECB -DHAVE_AES_KEYWRAP"
59+
C_EXTRA_FLAGS="-DWOLFSSL_PUBLIC_MP -DWC_RSA_DIRECT"
6060
make
6161
6262
- name: Install wolfssl

.github/workflows/storage-upgrade-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
run: |
6060
./autogen.sh
6161
./configure --enable-cryptocb --enable-aescfb --enable-rsapss --enable-keygen --enable-pwdbased --enable-scrypt \
62-
C_EXTRA_FLAGS="-DWOLFSSL_PUBLIC_MP -DWC_RSA_DIRECT -DHAVE_AES_ECB -DHAVE_AES_KEYWRAP"
62+
C_EXTRA_FLAGS="-DWOLFSSL_PUBLIC_MP -DWC_RSA_DIRECT"
6363
make
6464
6565
- name: Install wolfssl

tests/pkcs11test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3792,7 +3792,7 @@ static CK_RV test_generate_key_pair(void* args)
37923792
}
37933793
#endif
37943794

3795-
#ifdef HAVE_AES_KEYWRAP
3795+
#if defined(HAVE_AES_KEYWRAP) && !defined(WOLFPKCS11_NO_STORE)
37963796
static CK_RV test_aes_wrap_unwrap_key(void* args)
37973797
{
37983798
CK_SESSION_HANDLE session = *(CK_SESSION_HANDLE*)args;
@@ -3881,7 +3881,6 @@ static CK_RV test_aes_wrap_unwrap_pad_key(void* args)
38813881

38823882
return ret;
38833883
}
3884-
#endif /* HAVE_AES_KEYWRAP */
38853884

38863885
static CK_RV test_wrap_unwrap_key(void* args)
38873886
{
@@ -4006,6 +4005,7 @@ static CK_RV test_wrap_unwrap_key(void* args)
40064005

40074006
return ret;
40084007
}
4008+
#endif /* HAVE_AES_KEYWRAP && !WOLFPKCS11_NO_STORE */
40094009

40104010
#ifndef NO_DH
40114011
static CK_RV test_derive_key(void* args)
@@ -13646,11 +13646,11 @@ static TEST_FUNC testFunc[] = {
1364613646
#if !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN)
1364713647
PKCS11TEST_FUNC_SESS_DECL(test_generate_key_pair),
1364813648
#endif
13649-
#ifdef HAVE_AES_KEYWRAP
13649+
#if defined(HAVE_AES_KEYWRAP) && !defined(WOLFPKCS11_NO_STORE)
1365013650
PKCS11TEST_FUNC_SESS_DECL(test_aes_wrap_unwrap_key),
1365113651
PKCS11TEST_FUNC_SESS_DECL(test_aes_wrap_unwrap_pad_key),
13652-
#endif
1365313652
PKCS11TEST_FUNC_SESS_DECL(test_wrap_unwrap_key),
13653+
#endif /* HAVE_AES_KEYWRAP && !WOLFPKCS11_NO_STORE */
1365413654
#ifndef NO_DH
1365513655
PKCS11TEST_FUNC_SESS_DECL(test_derive_key),
1365613656
#endif

0 commit comments

Comments
 (0)