27025e
From 37f89ccfc439f8d86c401d9ae10e94e53b924961 Mon Sep 17 00:00:00 2001
27025e
From: Petr Mensik <pemensik@redhat.com>
27025e
Date: Tue, 27 Aug 2019 20:39:59 +0200
27025e
Subject: [PATCH] Do not set engine for native PKCS11
27025e
27025e
It resets already set lib_path to pkcs11, which is invalid in native
27025e
pkcs11 crypto. Engine has to be path to PKCS#11 module.
27025e
---
27025e
 bin/named/include/named/globals.h | 2 +-
27025e
 1 file changed, 1 insertion(+), 1 deletion(-)
27025e
27025e
diff --git a/bin/named/include/named/globals.h b/bin/named/include/named/globals.h
27025e
index eda2214..2a611d5 100644
27025e
--- a/bin/named/include/named/globals.h
27025e
+++ b/bin/named/include/named/globals.h
27025e
@@ -160,7 +160,7 @@ EXTERN const char *		ns_g_defaultdnstap	INIT(NULL);
27025e
 
27025e
 EXTERN const char *		ns_g_username		INIT(NULL);
27025e
 
27025e
-#if defined(USE_PKCS11)
27025e
+#if defined(USE_PKCS11) && !defined(PKCS11CRYPTO)
27025e
 EXTERN const char *		ns_g_engine		INIT(PKCS11_ENGINE);
27025e
 #else
27025e
 EXTERN const char *		ns_g_engine		INIT(NULL);
27025e
-- 
27025e
2.20.1
27025e