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

Side by Side Diff: chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp

Issue 4310004: DOMUI Cert Manager: merge email certs into other certs tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment Created 10 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/options/certificate_manager.js ('k') | net/base/cert_database_nss.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* ***** BEGIN LICENSE BLOCK ***** 1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 * 3 *
4 * The contents of this file are subject to the Mozilla Public License Version 4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with 5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at 6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/ 7 * http://www.mozilla.org/MPL/
8 * 8 *
9 * Software distributed under the License is distributed on an "AS IS" basis, 9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 } 1032 }
1033 1033
1034 net::CertType GetCertType(CERTCertificate *cert) { 1034 net::CertType GetCertType(CERTCertificate *cert) {
1035 nsNSSCertTrust trust(cert->trust); 1035 nsNSSCertTrust trust(cert->trust);
1036 if (cert->nickname && trust.HasAnyUser()) 1036 if (cert->nickname && trust.HasAnyUser())
1037 return net::USER_CERT; 1037 return net::USER_CERT;
1038 if (trust.HasAnyCA()) 1038 if (trust.HasAnyCA())
1039 return net::CA_CERT; 1039 return net::CA_CERT;
1040 if (trust.HasPeer(PR_TRUE, PR_FALSE, PR_FALSE)) 1040 if (trust.HasPeer(PR_TRUE, PR_FALSE, PR_FALSE))
1041 return net::SERVER_CERT; 1041 return net::SERVER_CERT;
1042 if (trust.HasPeer(PR_FALSE, PR_TRUE, PR_FALSE) && cert->emailAddr)
1043 return net::EMAIL_CERT;
1044 if (CERT_IsCACert(cert, NULL)) 1042 if (CERT_IsCACert(cert, NULL))
1045 return net::CA_CERT; 1043 return net::CA_CERT;
1046 if (cert->emailAddr)
1047 return net::EMAIL_CERT;
1048 return net::UNKNOWN_CERT; 1044 return net::UNKNOWN_CERT;
1049 } 1045 }
1050 1046
1051 } // namespace mozilla_security_manager 1047 } // namespace mozilla_security_manager
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/certificate_manager.js ('k') | net/base/cert_database_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698