]> git.ipfire.org Git - thirdparty/openvpn.git/commit
use new pkcs11-helper interface to add providers
authorMarc Becker <marc.becker@astos.de>
Sun, 11 Dec 2022 19:14:03 +0000 (20:14 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 15 Dec 2022 08:15:29 +0000 (09:15 +0100)
commit0236518cee65cc3d1da8d57b1d7785ecb2663a23
treeea7d3b4090251ade0bf21be9112315f2ebeecc72
parentbcceded96775cc5a131bb9ab11ba855c7576603d
use new pkcs11-helper interface to add providers

The new interface in  pkcs11-helper 1.28 allows decoupling of provider
registration and initialization.
This allows modifying more (and future) properties apart from the
6 fixed ones supported as arguments to pkcs11h_addProvider().

With the new interface it is easier to see (from a code perspective)
which option is set to which value.
It's also not necessary to supply values for built-in defaults:
- slot_event_method=PKCS11H_SLOTEVENT_METHOD_AUTO
- slot_poll_interval=0

Signed-off-by: Marc Becker <marc.becker@astos.de>
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: <20221211191403.805-1-marc.becker@astos.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25643.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 45d9b0210a22353e587c29c5d3c3990346a4a189)
src/openvpn/pkcs11.c