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

Side by Side Diff: net/base/cert_type.h

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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_CERT_TYPE_H_ 5 #ifndef NET_BASE_CERT_TYPE_H_
6 #define NET_BASE_CERT_TYPE_H_ 6 #define NET_BASE_CERT_TYPE_H_
7 7
8 namespace net { 8 namespace net {
9 9
10 // Constants to classify the type of a certificate. 10 // Constants to classify the type of a certificate.
11 // This is only used in the context of CertDatabase, but is defined outside to 11 // This is only used in the context of CertDatabase, but is defined outside to
12 // avoid an awkwardly long type name. 12 // avoid an awkwardly long type name.
13 // The type is a combination of intrinsic properties, such as the presense of an 13 // The type is a combination of intrinsic properties, such as the presense of an
14 // email address or Certificate Authority Basic Constraint, and assigned trust 14 // Certificate Authority Basic Constraint, and assigned trust values. For
15 // values. For example, a cert with no email address, basic constraints, or 15 // example, a cert with no basic constraints or trust would be classified as
16 // trust, would be classified as UNKNOWN_CERT. If that cert is then trusted 16 // UNKNOWN_CERT. If that cert is then trusted with SetCertTrust(cert,
17 // with SetCertTrust(cert, SERVER_CERT, TRUSTED_SSL), it would become a 17 // SERVER_CERT, TRUSTED_SSL), it would become a SERVER_CERT.
18 // SERVER_CERT.
19 enum CertType { 18 enum CertType {
20 UNKNOWN_CERT, 19 UNKNOWN_CERT,
21 CA_CERT, 20 CA_CERT,
22 USER_CERT, 21 USER_CERT,
23 EMAIL_CERT,
24 SERVER_CERT, 22 SERVER_CERT,
25 NUM_CERT_TYPES 23 NUM_CERT_TYPES
26 }; 24 };
27 25
28 } // namespace net 26 } // namespace net
29 27
30 #endif // NET_BASE_CERT_TYPE_H_ 28 #endif // NET_BASE_CERT_TYPE_H_
OLDNEW
« no previous file with comments | « net/base/cert_database_nss.cc ('k') | net/third_party/mozilla_security_manager/nsNSSCertificateDB.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698