/pidgin/main: 8b2f9fad7227: ssl-nss: Fix handling of certificate...
Daniel Atallah
datallah at pidgin.im
Sun Mar 3 14:08:24 EST 2013
Changeset: 8b2f9fad722767b43ff58166b08c90458d04fc14
Author: Daniel Atallah <datallah at pidgin.im>
Date: 2013-03-03 14:08 -0500
Branch: release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/8b2f9fad7227
Description:
ssl-nss: Fix handling of certificates without a Subject.
diffstat:
libpurple/plugins/ssl/ssl-nss.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/libpurple/plugins/ssl/ssl-nss.c b/libpurple/plugins/ssl/ssl-nss.c
--- a/libpurple/plugins/ssl/ssl-nss.c
+++ b/libpurple/plugins/ssl/ssl-nss.c
@@ -756,7 +756,7 @@ x509_signed_by(PurpleCertificate * crt,
subjectCert = X509_NSS_DATA(crt);
g_return_val_if_fail(subjectCert, FALSE);
- if (subjectCert->issuerName == NULL
+ if (subjectCert->issuerName == NULL || issuerCert->subjectName == NULL
|| PORT_Strcmp(subjectCert->issuerName, issuerCert->subjectName) != 0)
return FALSE;
st = CERT_VerifySignedData(&subjectCert->signatureWrap, issuerCert, PR_Now(), NULL);
More information about the Commits
mailing list