[glib-networking/wip/nacho/openssl] openssl: fix version check
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/nacho/openssl] openssl: fix version check
- Date: Wed, 19 Sep 2018 16:16:31 +0000 (UTC)
commit 9100bdc92fe551200137473380b11f42e4dbf8e9
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Wed Sep 19 18:13:28 2018 +0200
openssl: fix version check
tls/openssl/gtlsclientconnection-openssl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tls/openssl/gtlsclientconnection-openssl.c b/tls/openssl/gtlsclientconnection-openssl.c
index 61fd2be..4f129ba 100644
--- a/tls/openssl/gtlsclientconnection-openssl.c
+++ b/tls/openssl/gtlsclientconnection-openssl.c
@@ -507,13 +507,13 @@ g_tls_client_connection_openssl_initable_init (GInitable *initable,
hostname = get_server_identity (client);
-#if OPENSSL_VERSION_NUMBER >= 0x10200000L && !defined (LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined (LIBRESSL_VERSION_NUMBER)
if (hostname)
{
X509_VERIFY_PARAM *param;
param = X509_VERIFY_PARAM_new ();
- X509_VERIFY_PARAM_set1_host (param, hostname);
+ X509_VERIFY_PARAM_set1_host (param, hostname, 0);
SSL_CTX_set1_param (priv->ssl_ctx, param);
X509_VERIFY_PARAM_free (param);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]