From fe92cf0c4788bc2942253d9ade93849d344cf7b2 Mon Sep 17 00:00:00 2001 From: Simon Walton Date: Thu, 17 May 2018 13:34:38 -0700 Subject: [PATCH] Move fix up a level to bit a little more general --- libraries/networking/src/AccountManager.cpp | 3 +++ libraries/networking/src/RSAKeypairGenerator.cpp | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/networking/src/AccountManager.cpp b/libraries/networking/src/AccountManager.cpp index 049129b2ba..1f6932094c 100644 --- a/libraries/networking/src/AccountManager.cpp +++ b/libraries/networking/src/AccountManager.cpp @@ -729,6 +729,9 @@ void AccountManager::generateNewKeypair(bool isUserKeypair, const QUuid& domainI return; } + // Ensure openssl/Qt config is set up. + QSslConfiguration::defaultConfiguration(); + // make sure we don't already have an outbound keypair generation request if (!_isWaitingForKeypairResponse) { _isWaitingForKeypairResponse = true; diff --git a/libraries/networking/src/RSAKeypairGenerator.cpp b/libraries/networking/src/RSAKeypairGenerator.cpp index dcd4e7fd3c..222b04b47c 100644 --- a/libraries/networking/src/RSAKeypairGenerator.cpp +++ b/libraries/networking/src/RSAKeypairGenerator.cpp @@ -15,7 +15,6 @@ #include #include -#include #include #include "NetworkLogging.h" @@ -26,8 +25,7 @@ RSAKeypairGenerator::RSAKeypairGenerator(QObject* parent) : QObject(parent) { - // Ensure openssl/Qt config is set up. - QSslConfiguration::defaultConfiguration(); + } void RSAKeypairGenerator::generateKeypair() {