Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: mozilla/security/nss/lib/certhigh/certhigh.c

Issue 12197027: Merge NSS_3_14_2_RTM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mozilla/security/nss/lib/certdb/stanpcertdb.c ('k') | mozilla/security/nss/lib/certhigh/certvfy.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mozilla/security/nss/lib/certhigh/certhigh.c
===================================================================
--- mozilla/security/nss/lib/certhigh/certhigh.c (revision 180567)
+++ mozilla/security/nss/lib/certhigh/certhigh.c (working copy)
@@ -542,17 +542,15 @@
{
CERTDistNames *names;
PRBool saveit = PR_FALSE;
- CERTCertTrust *trust;
+ CERTCertTrust trust;
dnameNode *node;
int len;
names = (CERTDistNames *)data;
- if ( cert->trust ) {
- trust = cert->trust;
-
+ if ( CERT_GetCertTrust(cert, &trust) == SECSuccess ) {
/* only collect names of CAs trusted for issuing SSL clients */
- if ( trust->sslFlags & CERTDB_TRUSTED_CLIENT_CA ) {
+ if ( trust.sslFlags & CERTDB_TRUSTED_CLIENT_CA ) {
saveit = PR_TRUE;
}
}
« no previous file with comments | « mozilla/security/nss/lib/certdb/stanpcertdb.c ('k') | mozilla/security/nss/lib/certhigh/certvfy.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698