From 89e02dc669b46dbbd384bf80d95d42b0d840a2e4 Mon Sep 17 00:00:00 2001 From: Alessio Di Mauro Date: Thu, 12 Nov 2015 01:12:36 +0100 Subject: [PATCH] YKCS11: Do not call initialize for the YKCS11 tests. If initialize is called, the test requires a YubiKey with a working PIV application in order to function. --- ykcs11/tests/ykcs11_tests.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ykcs11/tests/ykcs11_tests.c b/ykcs11/tests/ykcs11_tests.c index a54eb22..3013d5b 100644 --- a/ykcs11/tests/ykcs11_tests.c +++ b/ykcs11/tests/ykcs11_tests.c @@ -19,11 +19,6 @@ static void lib_info() { exit(EXIT_FAILURE); } - if (funcs->C_Initialize(NULL) != CKR_OK) { - fprintf(stderr, "Initialize failed\n"); - exit(EXIT_FAILURE); - } - if (funcs->C_GetInfo(&info) != CKR_OK) { fprintf(stderr, "GetInfo failed\n"); exit(EXIT_FAILURE); @@ -51,11 +46,6 @@ static void lib_info() { exit(EXIT_FAILURE); } - if (funcs->C_Finalize(NULL) != CKR_OK) { - fprintf(stderr, "Finalize failed\n"); - exit(EXIT_FAILURE); - } - } int main(void) {