Qt: openssl 1.1.0 broke their ABI

This commit is contained in:
Brad Parker 2018-08-26 16:04:01 -04:00
parent 1d6a69d198
commit 12f1d003bb

View File

@ -578,11 +578,17 @@ MainWindow::MainWindow(QWidget *parent) :
removeUpdateTempFiles();
#ifdef HAVE_OPENSSL
{
const SSL_METHOD* method = TLSv1_method();
#if OPENSSL_VERSION_AT_LEAST(1,1)
const SSL_METHOD *method = TLS_method();
SSL_CTX *ctx = SSL_CTX_new(method);
if (ctx)
SSL_CTX_free(ctx);
#else
const SSL_METHOD *method = TLSv1_method();
RARCH_LOG("[Qt]: TLS supports %d ciphers.\n", method->num_ciphers());
#endif
RARCH_LOG("[Qt]: Using %s\n", OPENSSL_VERSION_TEXT);
RARCH_LOG("[Qt]: TLSv1 supports %d ciphers.\n", method->num_ciphers());
}
#endif
}