Blame SOURCES/tigervnc-working-tls-on-fips-systems.patch

55ccb6
diff --git a/common/rfb/SSecurityTLS.cxx b/common/rfb/SSecurityTLS.cxx
55ccb6
index b946022..2daefa2 100644
55ccb6
--- a/common/rfb/SSecurityTLS.cxx
55ccb6
+++ b/common/rfb/SSecurityTLS.cxx
55ccb6
@@ -186,7 +186,7 @@ void SSecurityTLS::setParams(gnutls_session_t session)
55ccb6
   if (gnutls_dh_params_init(&dh_params) != GNUTLS_E_SUCCESS)
55ccb6
     throw AuthFailureException("gnutls_dh_params_init failed");
55ccb6
55ccb6
-  if (gnutls_dh_params_generate2(dh_params, DH_BITS) != GNUTLS_E_SUCCESS)
55ccb6
+  if (gnutls_dh_params_generate2(dh_params, gnutls_sec_param_to_pk_bits(GNUTLS_PK_DH, GNUTLS_SEC_PARAM_MEDIUM)) != GNUTLS_E_SUCCESS)
55ccb6
     throw AuthFailureException("gnutls_dh_params_generate2 failed");
55ccb6
55ccb6
   if (anon) {