[glib-openssl] Print the library from where it is coming the error
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-openssl] Print the library from where it is coming the error
- Date: Thu, 26 Oct 2017 10:46:05 +0000 (UTC)
commit 4adbaf786df879e83c608d537f79c07cd49cf35e
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Thu Oct 26 12:43:51 2017 +0200
Print the library from where it is coming the error
tls/openssl/gtlsconnection-openssl.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tls/openssl/gtlsconnection-openssl.c b/tls/openssl/gtlsconnection-openssl.c
index 0d160b6..a5588e0 100644
--- a/tls/openssl/gtlsconnection-openssl.c
+++ b/tls/openssl/gtlsconnection-openssl.c
@@ -85,7 +85,7 @@ end_openssl_io (GTlsConnectionOpenssl *openssl,
{
GTlsConnectionBase *tls = G_TLS_CONNECTION_BASE (openssl);
GTlsConnectionOpensslPrivate *priv;
- int err_code, err, reason;
+ int err_code, err, err_lib, reason;
GError *my_error = NULL;
GTlsConnectionBaseStatus status;
SSL *ssl;
@@ -132,6 +132,7 @@ end_openssl_io (GTlsConnectionOpenssl *openssl,
return G_TLS_CONNECTION_BASE_OK;
err = ERR_get_error ();
+ err_lib = ERR_GET_LIB (err);
reason = ERR_GET_REASON (err);
if (tls->handshaking && !tls->ever_handshaked)
@@ -175,7 +176,7 @@ end_openssl_io (GTlsConnectionOpenssl *openssl,
g_propagate_error (error, my_error);
else
/* FIXME: this is just for debug */
- g_message ("end_openssl_io %s: %d, %d", G_IS_TLS_CLIENT_CONNECTION (openssl) ? "client" : "server",
err_code, reason);
+ g_message ("end_openssl_io %s: %d, %d, %d", G_IS_TLS_CLIENT_CONNECTION (openssl) ? "client" : "server",
err_code, err_lib, reason);
if (error && !*error)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]