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