[glib-openssl] openssl: fix version check
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-openssl] openssl: fix version check
- Date: Thu, 20 Sep 2018 07:24:17 +0000 (UTC)
commit ca0c085305cc4f7a0b74cf519d7cef2c0c8694a3
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 b1560c1..d7e46e0 100644
--- a/tls/openssl/gtlsclientconnection-openssl.c
+++ b/tls/openssl/gtlsclientconnection-openssl.c
@@ -503,13 +503,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]