x509_issuer_dn() should return the certificate's issuer name, not the cert

Sat, 01 Nov 2008 16:24:56 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Sat, 01 Nov 2008 16:24:56 +0000
changeset 24577
fdb8b167200e
parent 24576
fe6bea8ab109
child 24578
4b0fd98a170c

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

libpurple/plugins/ssl/ssl-nss.c file | annotate | diff | comparison | revisions
--- 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 *

mercurial