[glib-networking/mcatanzaro/tls-thread: 24/24] progress
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/mcatanzaro/tls-thread: 24/24] progress
- Date: Sat, 28 Dec 2019 21:05:29 +0000 (UTC)
commit e7c4fc1253fc18ebdd75fae805ba3c8413f41a0a
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Dec 28 14:41:55 2019 -0600
progress
tls/base/gtlsconnection-base.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/tls/base/gtlsconnection-base.c b/tls/base/gtlsconnection-base.c
index a770db1..7d58f0b 100644
--- a/tls/base/gtlsconnection-base.c
+++ b/tls/base/gtlsconnection-base.c
@@ -1283,7 +1283,6 @@ verify_certificate_cb (GTlsOperationsThreadBase *thread,
GTlsConnectionBase *tls)
{
GTlsConnectionBasePrivate *priv = g_tls_connection_base_get_instance_private (tls);
- GTlsCertificateFlags peer_certificate_errors = 0;
gboolean accepted = FALSE;
/* FIXME: when doing async handshake as sync-on-a-thread, this function will
@@ -1292,13 +1291,12 @@ verify_certificate_cb (GTlsOperationsThreadBase *thread,
* FIXME: eliminate handshake context.
*/
- if (peer_certificate)
- peer_certificate_errors = verify_peer_certificate (tls, peer_certificate);
-
g_set_object (&priv->peer_certificate, peer_certificate);
- g_clear_object (&peer_certificate);
- priv->peer_certificate_errors = peer_certificate_errors;
+ if (peer_certificate)
+ priv->peer_certificate_errors = verify_peer_certificate (tls, peer_certificate);
+ else
+ priv->peer_certificate_errors = 0;
g_object_notify (G_OBJECT (tls), "peer-certificate");
g_object_notify (G_OBJECT (tls), "peer-certificate-errors");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]