changeset 24299:ab5a49e46e38

x509_issuer_dn() should return the certificate's issuer name, not the cert subject name. This fixes verifying CA certs that are not included by the server if the chain if it is a one-level chain and we trust the CA. Fixes #7418
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 01 Nov 2008 16:24:56 +0000
parents 28dd3f379639
children f108d707b6e1
files libpurple/plugins/ssl/ssl-nss.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/ssl/ssl-nss.c	Fri Oct 31 16:24:24 2008 +0000
+++ b/libpurple/plugins/ssl/ssl-nss.c	Sat Nov 01 16:24:56 2008 +0000
@@ -757,7 +757,7 @@
 	crt_dat = X509_NSS_DATA(crt);
 	g_return_val_if_fail(crt_dat, NULL);
 
-	return g_strdup(crt_dat->subjectName);
+	return g_strdup(crt_dat->issuerName);
 }
 
 static gchar *