| Index: net/base/cert_type.h
|
| diff --git a/net/base/cert_type.h b/net/base/cert_type.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fbe433929a9a595f193be3b2b8b31965b45a8b40
|
| --- /dev/null
|
| +++ b/net/base/cert_type.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_BASE_CERT_TYPE_H_
|
| +#define NET_BASE_CERT_TYPE_H_
|
| +
|
| +namespace net {
|
| +
|
| +// 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
|
| +};
|
| +
|
| +} // namespace net
|
| +
|
| +#endif // NET_BASE_CERT_TYPE_H_
|
|
|