[cse] Enable OpenSSL for encryption

This commit is contained in:
Tomaz Canabrava 2017-09-14 17:37:43 +02:00 committed by Roeland Jago Douma
parent 418401a33c
commit 60729f1fc4
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -21,6 +21,9 @@
#include <sys/resource.h> #include <sys/resource.h>
#endif #endif
#include <openssl/conf.h>
#include <openssl/err.h>
#include "application.h" #include "application.h"
#include "theme.h" #include "theme.h"
#include "common/utility.h" #include "common/utility.h"
@ -47,6 +50,11 @@ int main(int argc, char **argv)
{ {
Q_INIT_RESOURCE(client); Q_INIT_RESOURCE(client);
/* Initialise the library */
ERR_load_crypto_strings();
OpenSSL_add_all_algorithms();
OPENSSL_config(NULL);
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
// If the font size ratio is set on Windows, we need to // If the font size ratio is set on Windows, we need to
// enable the auto pixelRatio in Qt since we don't // enable the auto pixelRatio in Qt since we don't