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