Initialize Qt/openssl before RSA keygen to prevent collision

This commit is contained in:
Simon Walton 2018-05-17 10:17:22 -07:00
parent a6cda2166a
commit 86a8672c5a

View file

@ -15,6 +15,7 @@
#include <openssl/rsa.h>
#include <openssl/x509.h>
#include <QSslConfiguration>
#include <qdebug.h>
#include "NetworkLogging.h"
@ -25,7 +26,8 @@
RSAKeypairGenerator::RSAKeypairGenerator(QObject* parent) :
QObject(parent)
{
// Ensure openssl/Qt config is set up.
QSslConfiguration::defaultConfiguration();
}
void RSAKeypairGenerator::generateKeypair() {