mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Initialize Qt/openssl before RSA keygen to prevent collision
This commit is contained in:
parent
a6cda2166a
commit
86a8672c5a
1 changed files with 3 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
||||||
#include <openssl/rsa.h>
|
#include <openssl/rsa.h>
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
|
|
||||||
|
#include <QSslConfiguration>
|
||||||
#include <qdebug.h>
|
#include <qdebug.h>
|
||||||
|
|
||||||
#include "NetworkLogging.h"
|
#include "NetworkLogging.h"
|
||||||
|
@ -25,7 +26,8 @@
|
||||||
RSAKeypairGenerator::RSAKeypairGenerator(QObject* parent) :
|
RSAKeypairGenerator::RSAKeypairGenerator(QObject* parent) :
|
||||||
QObject(parent)
|
QObject(parent)
|
||||||
{
|
{
|
||||||
|
// Ensure openssl/Qt config is set up.
|
||||||
|
QSslConfiguration::defaultConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RSAKeypairGenerator::generateKeypair() {
|
void RSAKeypairGenerator::generateKeypair() {
|
||||||
|
|
Loading…
Reference in a new issue