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