render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
9119d9
From 1ec73cff69bb80be23c388a01cb92da22720502c Mon Sep 17 00:00:00 2001
9119d9
Message-Id: <1ec73cff69bb80be23c388a01cb92da22720502c@dist-git>
9119d9
From: Giuseppe Scrivano <gscrivan@redhat.com>
9119d9
Date: Thu, 4 Sep 2014 12:43:58 +0200
9119d9
Subject: [PATCH] security: fix DH key generation when FIPS mode is on
9119d9
9119d9
When FIPS mode is on, gnutls_dh_params_generate2 will fail if 1024 is
9119d9
specified as the prime's number of bits, a bigger value works in both
9119d9
cases.
9119d9
9119d9
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1128497
9119d9
9119d9
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
9119d9
(cherry picked from commit ab22096710edb505d38d34fb3575427b0ea3b151)
9119d9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9119d9
---
9119d9
 src/rpc/virnettlscontext.c | 2 +-
9119d9
 1 file changed, 1 insertion(+), 1 deletion(-)
9119d9
9119d9
diff --git a/src/rpc/virnettlscontext.c b/src/rpc/virnettlscontext.c
9119d9
index 31aac9d..947038d 100644
9119d9
--- a/src/rpc/virnettlscontext.c
9119d9
+++ b/src/rpc/virnettlscontext.c
9119d9
@@ -43,7 +43,7 @@
9119d9
 #include "virthread.h"
9119d9
 #include "configmake.h"
9119d9
 
9119d9
-#define DH_BITS 1024
9119d9
+#define DH_BITS 2048
9119d9
 
9119d9
 #define LIBVIRT_PKI_DIR SYSCONFDIR "/pki"
9119d9
 #define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/CA/cacert.pem"
9119d9
-- 
9119d9
2.1.0
9119d9