Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37807191
en ru br
ALT Linux repos
S:1.11.0-alt1

Group :: Networking/Remote access
RPM: tigervnc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: Ubuntu-rh_tigervnc-working-tls-on-fips-systems.patch
Download


Description: Get TigerVNC's TLS working on fips systems.
Author: <unknown>
Index: pkg-tigervnc/common/rfb/SSecurityTLS.cxx
===================================================================
--- pkg-tigervnc.orig/common/rfb/SSecurityTLS.cxx
+++ pkg-tigervnc/common/rfb/SSecurityTLS.cxx
@@ -201,7 +201,7 @@ void SSecurityTLS::setParams(gnutls_sess
   if (gnutls_dh_params_init(&dh_params) != GNUTLS_E_SUCCESS)
     throw AuthFailureException("gnutls_dh_params_init failed");
 
-  if (gnutls_dh_params_generate2(dh_params, DH_BITS) != GNUTLS_E_SUCCESS)
+  if (gnutls_dh_params_generate2(dh_params, gnutls_sec_param_to_pk_bits(GNUTLS_PK_DH, GNUTLS_SEC_PARAM_MEDIUM)) != GNUTLS_E_SUCCESS)
     throw AuthFailureException("gnutls_dh_params_generate2 failed");
 
   if (anon) {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin