From: Selva Nair Date: Fri, 10 Oct 2025 06:39:27 +0000 (+0200) Subject: Fix PIN cache time in test_pkcs11.c X-Git-Tag: v2.7_beta3~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9bfd1c405f86617ace2f63ff29f1a4099b6920b;p=thirdparty%2Fopenvpn.git Fix PIN cache time in test_pkcs11.c Github: closes OpenVPN/openvpn#861 Change-Id: Ic6fd6ba676b4741da7811ffc7c9688d4673465f8 Signed-off-by: Selva Nair Acked-by: Arne Schwabe Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1263 Message-Id: <20251010063934.18197-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg33306.html Signed-off-by: Gert Doering --- diff --git a/tests/unit_tests/openvpn/test_pkcs11.c b/tests/unit_tests/openvpn/test_pkcs11.c index a4ba08844..01cbf965a 100644 --- a/tests/unit_tests/openvpn/test_pkcs11.c +++ b/tests/unit_tests/openvpn/test_pkcs11.c @@ -320,7 +320,7 @@ setup_pkcs11(void **state) /* set default propq as we do in ssl_openssl.c */ EVP_set_default_properties(tls_libctx, "?provider!=ovpn.xkey"); #endif - pkcs11_initialize(true, 0); /* protected auth enabled, pin-cache = 0 */ + pkcs11_initialize(true, 60); /* protected auth enabled, pin-cache = 60s */ pkcs11_addProvider(SOFTHSM2_MODULE_PATH, false, 0, false); return 0; }