Skip to content

Commit 2bde1da

Browse files
committed
Add tests for PKCS#11 V3.0 and V3.2
1 parent e628016 commit 2bde1da

5 files changed

Lines changed: 956 additions & 1 deletion

File tree

.github/workflows/unit-test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,18 @@ jobs:
9090
uses: ./.github/workflows/build-workflow.yml
9191
with:
9292
config: --enable-pbkdf2 --with-pbkdf2-iterations=1000
93-
93+
pkcs11v3only:
94+
uses: ./.github/workflows/build-workflow.yml
95+
with:
96+
config: --enable-pkcs11v30 --disable-pkcs11v32
97+
pkcs11v32:
98+
uses: ./.github/workflows/build-workflow.yml
99+
with:
100+
config: --enable-pkcs11v32
101+
pkcs11v32-static:
102+
uses: ./.github/workflows/build-workflow.yml
103+
with:
104+
config: --enable-pkcs11v32 --disable-shared
94105
debug:
95106
uses: ./.github/workflows/build-workflow.yml
96107
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ tests/object_id_uniqueness_test
3838
tests/rsa_session_persistence_test
3939
tests/debug_test
4040
tests/token_path_test
41+
tests/pkcs11v3test
4142
examples/add_aes_key
4243
examples/add_hmac_key
4344
examples/add_rsa_key

tests/include.am

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ noinst_PROGRAMS += tests/empty_pin_store_test
4141
tests_empty_pin_store_test_SOURCES = tests/empty_pin_store_test.c
4242
tests_empty_pin_store_test_LDADD =
4343

44+
check_PROGRAMS += tests/pkcs11v3test
45+
noinst_PROGRAMS += tests/pkcs11v3test
46+
tests_pkcs11v3test_SOURCES = tests/pkcs11v3test.c
47+
tests_pkcs11v3test_LDADD =
48+
4449
if BUILD_STATIC
4550
tests_pkcs11test_LDADD += src/libwolfpkcs11.la
4651
tests_pkcs11mtt_LDADD += src/libwolfpkcs11.la
@@ -50,6 +55,7 @@ tests_rsa_session_persistence_test_LDADD += src/libwolfpkcs11.la
5055
tests_debug_test_LDADD += src/libwolfpkcs11.la
5156
tests_object_id_uniqueness_test_LDADD += src/libwolfpkcs11.la
5257
tests_empty_pin_store_test_LDADD += src/libwolfpkcs11.la
58+
tests_pkcs11v3test_LDADD += src/libwolfpkcs11.la
5359
else
5460
tests_object_id_uniqueness_test_LDADD += src/libwolfpkcs11.la
5561
tests_empty_pin_store_test_LDADD += src/libwolfpkcs11.la

0 commit comments

Comments
 (0)