]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix PIN cache time in test_pkcs11.c
authorSelva Nair <selva.nair@gmail.com>
Fri, 10 Oct 2025 06:39:27 +0000 (08:39 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 10 Oct 2025 07:15:56 +0000 (09:15 +0200)
Github: closes OpenVPN/openvpn#861

Change-Id: Ic6fd6ba676b4741da7811ffc7c9688d4673465f8
Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
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 <gert@greenie.muc.de>
tests/unit_tests/openvpn/test_pkcs11.c

index a4ba08844c01cab9c7b908fcebfbd2eec7fbbb00..01cbf965ac7909f53f5790cf94a85aef465f7a75 100644 (file)
@@ -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;
 }