Skip to content

Commit

Permalink
FAPI: Test cleanup for key loading with policy usage.
Browse files Browse the repository at this point in the history
A key chain with four keys is generated. The last key will be used to
create a signature and the signature will be verified.
Policies and passwords will be assigned to the keys. Also error cases
will be tested to verify proper cleanup.

Signed-off-by: Juergen Repp <juergen.repp@sit.fraunhofer.de>
  • Loading branch information
JuergenReppSIT authored and Andreas Fuchs committed Feb 5, 2021
1 parent f7ec396 commit ae4dd0f
Show file tree
Hide file tree
Showing 2 changed files with 423 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile-test.am
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ FAPI_TESTS_INTEGRATION = \
test/integration/fapi-get-random.fint \
test/integration/fapi-platform-certificates.fint \
test/integration/fapi-key-create-sign.fint \
test/integration/fapi-key-create2-sign.fint \
test/integration/fapi-key-create-null-key-sign.fint \
test/integration/fapi-key-create-sign-persistent-key.fint \
test/integration/fapi-key-create-sign-password-provision.fint \
Expand Down Expand Up @@ -1486,6 +1487,13 @@ test_integration_fapi_key_create_sign_fint_SOURCES = \
test/integration/fapi-key-create-sign.int.c \
test/integration/main-fapi.c test/integration/test-fapi.h

test_integration_fapi_key_create2_sign_fint_CFLAGS = $(TESTS_CFLAGS)
test_integration_fapi_key_create2_sign_fint_LDADD = $(TESTS_LDADD)
test_integration_fapi_key_create2_sign_fint_LDFLAGS = $(TESTS_LDFLAGS)
test_integration_fapi_key_create2_sign_fint_SOURCES = \
test/integration/fapi-key-create2-sign.int.c \
test/integration/main-fapi.c test/integration/test-fapi.h

test_integration_fapi_key_create_null_key_sign_fint_CFLAGS = $(TESTS_CFLAGS)
test_integration_fapi_key_create_null_key_sign_fint_LDADD = $(TESTS_LDADD)
test_integration_fapi_key_create_null_key_sign_fint_LDFLAGS = $(TESTS_LDFLAGS)
Expand Down
Loading

0 comments on commit ae4dd0f

Please sign in to comment.