mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
security: fix DH key generation when FIPS mode is on
When FIPS mode is on, gnutls_dh_params_generate2 will fail if 1024 is specified as the prime's number of bits, a bigger value works in both cases. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
5bb47e0ca7
commit
ab22096710
@ -43,7 +43,7 @@
|
||||
#include "virthread.h"
|
||||
#include "configmake.h"
|
||||
|
||||
#define DH_BITS 1024
|
||||
#define DH_BITS 2048
|
||||
|
||||
#define LIBVIRT_PKI_DIR SYSCONFDIR "/pki"
|
||||
#define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/CA/cacert.pem"
|
||||
|
Loading…
Reference in New Issue
Block a user