[glib-networking/wip/openssl] Port fix for https://bugzilla.gnome.org/show_bug.cgi?id=697908 to openssl



commit 9425a8db39e63194af12917da4103dcb0d741174
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Jun 19 11:54:41 2016 +0200

    Port fix for https://bugzilla.gnome.org/show_bug.cgi?id=697908 to openssl

 tls/openssl/gtlscertificate-openssl.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tls/openssl/gtlscertificate-openssl.c b/tls/openssl/gtlscertificate-openssl.c
index a0e4124..d51c9f5 100644
--- a/tls/openssl/gtlscertificate-openssl.c
+++ b/tls/openssl/gtlscertificate-openssl.c
@@ -668,6 +668,10 @@ g_tls_certificate_openssl_build_chain (X509            *x,
     {
       issuer = NULL;
 
+      /* Check if the cert issued itself */
+      if (is_issuer (glib_certs->pdata[i], glib_certs->pdata[i]))
+        continue;
+
       if (i < glib_certs->len - 1 &&
           is_issuer (glib_certs->pdata[i], glib_certs->pdata[i + 1]))
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]