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

Unified Diff: net/cert/cert_policy_enforcer.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/cert_database_win.cc ('k') | net/cert/cert_policy_enforcer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_policy_enforcer.h
diff --git a/net/cert/cert_policy_enforcer.h b/net/cert/cert_policy_enforcer.h
deleted file mode 100644
index 5d6b64b06d6a2d732a947c110c0b01e32d34f696..0000000000000000000000000000000000000000
--- a/net/cert/cert_policy_enforcer.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 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_CERT_CERT_POLICY_ENFORCER_H
-#define NET_CERT_CERT_POLICY_ENFORCER_H
-
-#include <stddef.h>
-
-#include "net/base/net_export.h"
-#include "net/base/net_log.h"
-
-namespace net {
-
-namespace ct {
-
-struct CTVerifyResult;
-class EVCertsWhitelist;
-
-} // namespace ct
-
-class X509Certificate;
-
-// Class for checking that a given certificate conforms to security-related
-// policies.
-class NET_EXPORT CertPolicyEnforcer {
- public:
- // Set the parameters for this policy enforcer:
- // |require_ct_for_ev| indicates whether Certificate Transparency presence
- // is required for EV certificates.
- explicit CertPolicyEnforcer(bool require_ct_for_ev);
- virtual ~CertPolicyEnforcer();
-
- // Returns true if the collection of SCTs for the given certificate
- // conforms with the CT/EV policy. Conformance details are logged to
- // |net_log|.
- // |cert| is the certificate for which the SCTs apply.
- // |ct_result| must contain the result of verifying any SCTs associated with
- // |cert| prior to invoking this method.
- bool DoesConformToCTEVPolicy(X509Certificate* cert,
- const ct::EVCertsWhitelist* ev_whitelist,
- const ct::CTVerifyResult& ct_result,
- const BoundNetLog& net_log);
-
- private:
- bool require_ct_for_ev_;
-};
-
-} // namespace net
-
-#endif // NET_CERT_CERT_POLICY_ENFORCER_H
« no previous file with comments | « net/cert/cert_database_win.cc ('k') | net/cert/cert_policy_enforcer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698