diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2023-02-03 16:12:23 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2023-02-03 17:21:34 +0100 |
commit | 005341dff13d45e81b2d6a4086f9055058cda28c (patch) | |
tree | 6a978e91f7b654fb4833e644e2ef3e65725066f4 | |
parent | b2cf787352c5882d12afa4de1ea8f4586bf5e049 (diff) |
xtest: pkcs11: fix compile error with init_{user_,}test_token()
Commit b38e9e06fcbd ("xtest: pkcs11: add PKCS11 ACL auth test") split
init_{user_,}test_token() into init_{user_,}test_token_pin_auth() and
init_{user_,}token_acl_auth() but omitted to update a couple of call
sites. Fix them.
Fixes the following compile errors:
pkcs11_1000.c: In function ‘xtest_pkcs11_test_1026’:
pkcs11_1000.c:8537:7: error: implicit declaration of function ‘init_test_token’ [-Werror=implicit-function-declaration]
8537 | rv = init_test_token(slot);
| ^~~~~~~~~~~~~~~
pkcs11_1000.c:8537:7: error: nested extern declaration of ‘init_test_token’ [-Werror=nested-externs]
pkcs11_1000.c:8541:7: error: implicit declaration of function ‘init_user_test_token’; did you mean ‘init_user_test_token_acl_auth’? [-Werror=implicit-function-declaration]
8541 | rv = init_user_test_token(slot);
| ^~~~~~~~~~~~~~~~~~~~
| init_user_test_token_acl_auth
pkcs11_1000.c:8541:7: error: nested extern declaration of ‘init_user_test_token’ [-Werror=nested-externs]
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
-rw-r--r-- | host/xtest/pkcs11_1000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/xtest/pkcs11_1000.c b/host/xtest/pkcs11_1000.c index bf0cd85..061b339 100644 --- a/host/xtest/pkcs11_1000.c +++ b/host/xtest/pkcs11_1000.c @@ -8534,11 +8534,11 @@ static void xtest_pkcs11_test_1026(ADBG_Case_t *c) if (!ADBG_EXPECT_CK_OK(c, rv)) return; - rv = init_test_token(slot); + rv = init_test_token_pin_auth(slot); if (!ADBG_EXPECT_CK_OK(c, rv)) goto close_lib; - rv = init_user_test_token(slot); + rv = init_user_test_token_pin_auth(slot); if (!ADBG_EXPECT_CK_OK(c, rv)) goto close_lib; |