]> 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:13:56 +0000 (09:13 +0100)
commit45d9b0210a22353e587c29c5d3c3990346a4a189
treebc59109e4b5958f640d4918b5f250cab50aa38c6
parent8958a365479348c1500dee44e1a8b27e7e35a96f
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>
src/openvpn/pkcs11.c