[glib-openssl] SSL_R_SHUTDOWN_WHILE_IN_INIT might not be defined
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-openssl] SSL_R_SHUTDOWN_WHILE_IN_INIT might not be defined
- Date: Wed, 18 Oct 2017 07:09:37 +0000 (UTC)
commit bdae8f5f26a8bcdaac25bd73563e2261fffe4497
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Oct 18 09:08:54 2017 +0200
SSL_R_SHUTDOWN_WHILE_IN_INIT might not be defined
tls/openssl/gtlsconnection-openssl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index d93308e..0d160b6 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -151,6 +151,7 @@ end_openssl_io (GTlsConnectionOpenssl *openssl,
}
}
+#ifdef SSL_R_SHUTDOWN_WHILE_IN_INIT
/* XXX: this error happens on ubuntu when shutting down the connection, it
* seems to be a bug in a specific version of openssl, so let's handle it
* gracefully
@@ -160,6 +161,7 @@ end_openssl_io (GTlsConnectionOpenssl *openssl,
g_clear_error (&my_error);
return G_TLS_CONNECTION_BASE_OK;
}
+#endif
if (reason == SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]