Move fix up a level to bit a little more general

This commit is contained in:
Simon Walton 2018-05-17 13:34:38 -07:00
parent 86a8672c5a
commit fe92cf0c47
2 changed files with 4 additions and 3 deletions

View file

@ -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;

View file

@ -15,7 +15,6 @@
#include <openssl/rsa.h>
#include <openssl/x509.h>
#include <QSslConfiguration>
#include <qdebug.h>
#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() {