Qt: only use openssl if we have it

This commit is contained in:
Brad Parker 2018-08-26 10:44:55 -04:00
parent 7731db9ed8
commit 49e5fcd0cc

View File

@ -73,8 +73,10 @@ extern "C" {
#include <file/archive_file.h>
#include <streams/file_stream.h>
#include <math.h>
#ifdef HAVE_OPENSSL
#include <openssl/ssl.h>
#include <openssl/opensslv.h>
#endif
}
#include "../../../AUTHORS.h"
@ -574,7 +576,7 @@ MainWindow::MainWindow(QWidget *parent) :
#endif
removeUpdateTempFiles();
#ifdef HAVE_OPENSSL
{
const SSL_METHOD* method = TLSv1_method();
@ -582,6 +584,7 @@ MainWindow::MainWindow(QWidget *parent) :
RARCH_LOG("[Qt]: TLSv1 supports %d ciphers.\n", method->num_ciphers());
}
#endif
}
MainWindow::~MainWindow()