Removed explicit initialization; Fixed RAND_bytes not found

This commit is contained in:
Aleksandr Borisenko 2018-11-08 11:24:39 +03:00
parent 82cbee3f9d
commit bb2d31a2bd
2 changed files with 2 additions and 7 deletions

View file

@ -21,9 +21,6 @@
#include <sys/resource.h>
#endif
#include <openssl/conf.h>
#include <openssl/err.h>
#include "application.h"
#include "theme.h"
#include "common/utility.h"
@ -51,10 +48,7 @@ int main(int argc, char **argv)
{
Q_INIT_RESOURCE(client);
/* Initialise the library */
ERR_load_crypto_strings();
OpenSSL_add_all_algorithms();
OPENSSL_config(NULL);
// OpenSSL 1.1.0: No explicit initialisation or de-initialisation is necessary.
#ifdef Q_OS_WIN
// If the font size ratio is set on Windows, we need to

View file

@ -3,6 +3,7 @@
#include <openssl/pem.h>
#include <openssl/err.h>
#include <openssl/engine.h>
#include <openssl/rand.h>
#include "clientsideencryption.h"