client tested with 3.0.1 (no pkcs#11 though), and stared at the code a bit.
This change looks like it really wants an "#else" and move the #endif
to the end of the function... (though the compiler does not warn)
pkcs11_init_tls_session(pkcs11h_certificate_t certificate,
struct tls_root_ctx *const ssl_ctx)
{
+
+#ifdef HAVE_XKEY_PROVIDER
+ return (xkey_load_from_pkcs11h(certificate, ssl_ctx) == 0); /* inverts the
return value */
+#endif
+
int ret = 1;
(more stuff)
This prototype looks a bit surprising
+static XKEY_EXTERNAL_SIGN_fn xkey_pkcs11h_sign;
given that the function is defined just below? Is this to ensure
XKEY_EXTERNAL_SIGN_fn matches the actual function definition?
Your patch has been applied to the master branch.
commit 6121001ed82914f336da081bb8aefaeb055450cb
Author: Selva Nair
Date: Tue Dec 14 11:59:24 2021 -0500
pkcs11: Interface the xkey provider with pkcs11-helper
Signed-off-by: Selva Nair <[email protected]>
Acked-by: Arne Schwabe <[email protected]>
Message-Id: <[email protected]>
URL:
https://www.mail-archive.com/[email protected]/msg23442.html
Signed-off-by: Gert Doering <[email protected]>
--
kind regards,
Gert Doering
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel