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

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

Issue 3135002: Update to NSS 3.12.7 and NSPR 4.8.6.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 4 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
Index: nss/mozilla/security/nss/lib/certhigh/certvfy.c
===================================================================
--- nss/mozilla/security/nss/lib/certhigh/certvfy.c (revision 55475)
+++ nss/mozilla/security/nss/lib/certhigh/certvfy.c (working copy)
@@ -482,8 +482,8 @@
}
/* get the privilege mask */
- if (key->u.fortezza.DSSpriviledge.len > 0) {
- priv = key->u.fortezza.DSSpriviledge.data[0];
+ if (key->u.fortezza.DSSprivilege.len > 0) {
+ priv = key->u.fortezza.DSSprivilege.data[0];
}
/*
@@ -647,7 +647,10 @@
CERTGeneralName *subjectNameList;
int subjectNameListLen;
int i;
- subjectNameList = CERT_GetCertificateNames(subjectCert, arena);
+ PRBool getSubjectCN = (!count && certUsage == certUsageSSLServer);
+ subjectNameList =
+ CERT_GetConstrainedCertificateNames(subjectCert, arena,
+ getSubjectCN);
if (!subjectNameList)
goto loser;
subjectNameListLen = CERT_GetNamesLength(subjectNameList);

Powered by Google App Engine
This is Rietveld 408576698