summaryrefslogtreecommitdiffstats
path: root/net/base/cert_database.h
diff options
context:
space:
mode:
authorbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-08 12:44:40 +0000
committerbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-08 12:44:40 +0000
commitb1c2a554239ab3be950f0d19581945eb115e7a6c (patch)
tree5688a12bb881cd14c5ed80d0ccbdf2208248f45c /net/base/cert_database.h
parent2a73485bfae7e697df34e6640b1593ccafe2cf53 (diff)
downloadchromium_src-b1c2a554239ab3be950f0d19581945eb115e7a6c.zip
chromium_src-b1c2a554239ab3be950f0d19581945eb115e7a6c.tar.gz
chromium_src-b1c2a554239ab3be950f0d19581945eb115e7a6c.tar.bz2
Decouples certificates viewers from NSS to prepare support for OpenSSL.
This change is a pre-requisite for http://codereview.chromium.org/3529008/show There are no functional changes, it's only refactoring existing code. BUG=None TEST=Go to an https:// page and check the certificate info. Review URL: http://codereview.chromium.org/3565006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61944 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_database.h')
-rw-r--r--net/base/cert_database.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/net/base/cert_database.h b/net/base/cert_database.h
index a3f8fc2..113a658 100644
--- a/net/base/cert_database.h
+++ b/net/base/cert_database.h
@@ -12,29 +12,13 @@
#include "base/basictypes.h"
#include "base/string16.h"
#include "base/ref_counted.h"
+#include "net/base/cert_type.h"
namespace net {
class X509Certificate;
typedef std::vector<scoped_refptr<X509Certificate> > CertificateList;
-// Constants to classify the type of a certificate.
-// This is only used in the context of CertDatabase, but is defined outside to
-// avoid an awkwardly long type name.
-// The type is a combination of intrinsic properties, such as the presense of an
-// email address or Certificate Authority Basic Constraint, and assigned trust
-// values. For example, a cert with no email address, basic constraints, or
-// trust, would be classified as UNKNOWN_CERT. If that cert is then trusted
-// with SetCertTrust(cert, SERVER_CERT, TRUSTED_SSL), it would become a
-// SERVER_CERT.
-enum CertType {
- UNKNOWN_CERT,
- CA_CERT,
- USER_CERT,
- EMAIL_CERT,
- SERVER_CERT,
- NUM_CERT_TYPES
-};
// This class provides functions to manipulate the local
// certificate store.