[X2Go-Commits] [x2goclient] 220/280: src/onmainwindow.{cpp, h}: rename generateHostKey () to generateKey () and add a boolean parameter with a default of false to request a public key.

git-admin at x2go.org git-admin at x2go.org
Wed Jan 18 12:26:02 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch bugfix/osx
in repository x2goclient.

commit 2685544d7ae5833a8cb8854c87c5e64a420f6906
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Sep 22 04:57:38 2016 +0200

    src/onmainwindow.{cpp,h}: rename generateHostKey () to generateKey () and add a boolean parameter with a default of false to request a public key.
    
    Change old invocations of generateHostKey () accordingly.
---
 debian/changelog     |    3 +++
 src/onmainwindow.cpp |    6 +++---
 src/onmainwindow.h   |    2 +-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2001a78..c132511 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -407,6 +407,9 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
     - src/onmainwindow.cpp: add support for explicitly setting the private key
       bit size based on type and use values (currently) regarded as secure to
       generateHostKey ().
+    - src/onmainwindow.{cpp,h}: rename generateHostKey () to generateKey ()
+      and add a boolean parameter with a default of false to request a public
+      key. Change old invocations of generateHostKey () accordingly.
 
   [ Bernard Cafarelli ]
   * New upstream version (4.0.5.3):
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index 38f942f..eef7633 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -8208,7 +8208,7 @@ QString ONMainWindow::createRSAKey()
     if ( !rsa.open ( QIODevice::ReadOnly | QIODevice::Text ) )
     {
 #if defined (Q_OS_LINUX) || defined (Q_OS_DARWIN)
-        generateHostKey (RSA_KEY_TYPE);
+        generateKey (RSA_KEY_TYPE, true);
         generateEtcFiles ();
 
         if (!startSshd ()) {
@@ -10173,7 +10173,7 @@ void ONMainWindow::startWinServers()
     {
 
         dr.mkpath ( etcDir );
-        generateHostKey(RSA_KEY_TYPE);
+        generateKey(RSA_KEY_TYPE, true);
         generateEtcFiles();
         sshStarter->start();
     }
@@ -10352,7 +10352,7 @@ void ONMainWindow::generateEtcFiles()
     x2goDebug<<etcDir +"/sshd_config created.";
 }
 
-void ONMainWindow::generateHostKey(ONMainWindow::key_types key_type)
+void ONMainWindow::generateKey(ONMainWindow::key_types key_type, bool host_key)
 {
     ONMainWindow::key_types sanitized_key_type = UNKNOWN_KEY_TYPE;
     QString stringified_key_type = "";
diff --git a/src/onmainwindow.h b/src/onmainwindow.h
index 1fb1e8e..38c22c3 100644
--- a/src/onmainwindow.h
+++ b/src/onmainwindow.h
@@ -1206,7 +1206,7 @@ private:
 #endif
     void filterDesktops ( const QString& filter,
                           bool strict=false );
-    void generateHostKey(key_types key_type);
+    void generateKey(key_types key_type, bool host_key = false);
     void generateEtcFiles();
     QString u3DataPath();
     void cleanPortable();

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list