| Index: net/base/cert_verifier.h
|
| diff --git a/net/base/cert_verifier.h b/net/base/cert_verifier.h
|
| index de8b9b52cc8d3a2d4c813c88c03986574cbc7f88..29d5ecd29389114d5bdf9c54ce899b5c5d3e8043 100644
|
| --- a/net/base/cert_verifier.h
|
| +++ b/net/base/cert_verifier.h
|
| @@ -29,6 +29,34 @@ class NET_EXPORT CertVerifier {
|
| // Opaque pointer type used to cancel outstanding requests.
|
| typedef void* RequestHandle;
|
|
|
| + enum VerifyFlags {
|
| + // If set, enables online revocation checking via CRLs and OCSP for the
|
| + // certificate chain.
|
| + VERIFY_REV_CHECKING_ENABLED = 1 << 0,
|
| +
|
| + // If set, and the certificate being verified may be an EV certificate,
|
| + // attempt to verify the certificate according to the EV processing
|
| + // guidelines. In order to successfully verify a certificate as EV,
|
| + // either an online or offline revocation check must be successfully
|
| + // completed. To ensure it's possible to complete a revocation check,
|
| + // callers should also specify either VERIFY_REV_CHECKING_ENABLED or
|
| + // VERIFY_REV_CHECKING_ENABLED_EV_ONLY (to enable online checks), and
|
| + // VERIFY_CERT_IO_ENABLED (to enable network fetches for online checks).
|
| + VERIFY_EV_CERT = 1 << 1,
|
| +
|
| + // If set, permits NSS to use the network when verifying certificates,
|
| + // such as to fetch missing intermediates or to check OCSP or CRLs.
|
| + // TODO(rsleevi): http://crbug.com/143300 - Define this flag for all
|
| + // verification engines with well-defined semantics, rather than being
|
| + // NSS only.
|
| + VERIFY_CERT_IO_ENABLED = 1 << 2,
|
| +
|
| + // If set, enables online revocation checking via CRLs or OCSP, but only
|
| + // for certificates which may be EV, and only when VERIFY_EV_CERT is also
|
| + // set.
|
| + VERIFY_REV_CHECKING_ENABLED_EV_ONLY = 1 << 3,
|
| + };
|
| +
|
| // When the verifier is destroyed, all certificate verification requests are
|
| // canceled, and their completion callbacks will not be called.
|
| virtual ~CertVerifier() {}
|
| @@ -42,7 +70,7 @@ class NET_EXPORT CertVerifier {
|
| // |verify_result->cert_status|, and the error code for the most serious
|
| // error is returned.
|
| //
|
| - // |flags| is bitwise OR'd of X509Certificate::VerifyFlags.
|
| + // |flags| is bitwise OR'd of VerifyFlags.
|
| // If VERIFY_REV_CHECKING_ENABLED is set in |flags|, certificate revocation
|
| // checking is performed.
|
| //
|
|
|