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

Side by Side Diff: net/ssl/ssl_info.h

Issue 1578993003: Add Expect CT policy that gets checked on all certs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 unified diff | Download patch
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | net/ssl/ssl_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SSL_SSL_INFO_H_ 5 #ifndef NET_SSL_SSL_INFO_H_
6 #define NET_SSL_SSL_INFO_H_ 6 #define NET_SSL_SSL_INFO_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 #include "net/cert/cert_status_flags.h" 12 #include "net/cert/cert_status_flags.h"
13 #include "net/cert/ct_verify_result.h" 13 #include "net/cert/ct_verify_result.h"
14 #include "net/cert/sct_status_flags.h" 14 #include "net/cert/sct_status_flags.h"
15 #include "net/cert/x509_cert_types.h" 15 #include "net/cert/x509_cert_types.h"
16 #include "net/ssl/signed_certificate_timestamp_and_status.h" 16 #include "net/ssl/signed_certificate_timestamp_and_status.h"
17 #include "net/ssl/ssl_config.h" 17 #include "net/ssl/ssl_config.h"
18 18
19 namespace net { 19 namespace net {
20 20
21 namespace ct { 21 namespace ct {
22 22
23 enum class CertPolicyCompliance;
23 enum class EVPolicyCompliance; 24 enum class EVPolicyCompliance;
24 25
25 } // namespace ct 26 } // namespace ct
26 27
27 class X509Certificate; 28 class X509Certificate;
28 29
29 // SSL connection info. 30 // SSL connection info.
30 // This is really a struct. All members are public. 31 // This is really a struct. All members are public.
31 class NET_EXPORT SSLInfo { 32 class NET_EXPORT SSLInfo {
32 public: 33 public:
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // connection and results are available. If true, the field below 129 // connection and results are available. If true, the field below
129 // (|ev_policy_compliance|) will contain information about whether 130 // (|ev_policy_compliance|) will contain information about whether
130 // the connection complied with the policy and why the connection 131 // the connection complied with the policy and why the connection
131 // was considered non-compliant, if applicable. 132 // was considered non-compliant, if applicable.
132 bool ct_compliance_details_available; 133 bool ct_compliance_details_available;
133 134
134 // Whether the connection complied with the CT EV policy, and if not, 135 // Whether the connection complied with the CT EV policy, and if not,
135 // why not. Only meaningful if |ct_compliance_details_available| is 136 // why not. Only meaningful if |ct_compliance_details_available| is
136 // true. 137 // true.
137 ct::EVPolicyCompliance ct_ev_policy_compliance; 138 ct::EVPolicyCompliance ct_ev_policy_compliance;
139
140 // Whether the connection complied with the CT cert policy, and if
141 // not, why not. Only meaningful it |ct_compliance_details_available|
142 // is true.
143 ct::CertPolicyCompliance ct_cert_policy_compliance;
138 }; 144 };
139 145
140 } // namespace net 146 } // namespace net
141 147
142 #endif // NET_SSL_SSL_INFO_H_ 148 #endif // NET_SSL_SSL_INFO_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | net/ssl/ssl_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698