OLD | NEW |
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_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ |
7 | 7 |
8 #include <openssl/base.h> | 8 #include <openssl/base.h> |
9 #include <openssl/ssl.h> | 9 #include <openssl/ssl.h> |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 bool DoTransportIO(); | 127 bool DoTransportIO(); |
128 int DoHandshake(); | 128 int DoHandshake(); |
129 int DoHandshakeComplete(int result); | 129 int DoHandshakeComplete(int result); |
130 int DoChannelIDLookup(); | 130 int DoChannelIDLookup(); |
131 int DoChannelIDLookupComplete(int result); | 131 int DoChannelIDLookupComplete(int result); |
132 int DoVerifyCert(int result); | 132 int DoVerifyCert(int result); |
133 int DoVerifyCertComplete(int result); | 133 int DoVerifyCertComplete(int result); |
134 void DoConnectCallback(int result); | 134 void DoConnectCallback(int result); |
135 void UpdateServerCert(); | 135 void UpdateServerCert(); |
136 void VerifyCT(); | 136 void VerifyCT(); |
| 137 void CheckOCSP(const X509Certificate& verified_certificate, |
| 138 const X509Certificate& unverified_certificate, |
| 139 bool is_issued_by_known_root); |
137 | 140 |
138 void OnHandshakeIOComplete(int result); | 141 void OnHandshakeIOComplete(int result); |
139 void OnSendComplete(int result); | 142 void OnSendComplete(int result); |
140 void OnRecvComplete(int result); | 143 void OnRecvComplete(int result); |
141 | 144 |
142 int DoHandshakeLoop(int last_io_result); | 145 int DoHandshakeLoop(int last_io_result); |
143 int DoReadLoop(); | 146 int DoReadLoop(); |
144 int DoWriteLoop(); | 147 int DoWriteLoop(); |
145 int DoPayloadRead(); | 148 int DoPayloadRead(); |
146 int DoPayloadWrite(); | 149 int DoPayloadWrite(); |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 CTPolicyEnforcer* const policy_enforcer_; | 369 CTPolicyEnforcer* const policy_enforcer_; |
367 | 370 |
368 // pinning_failure_log contains a message produced by | 371 // pinning_failure_log contains a message produced by |
369 // TransportSecurityState::CheckPublicKeyPins in the event of a | 372 // TransportSecurityState::CheckPublicKeyPins in the event of a |
370 // pinning failure. It is a (somewhat) human-readable string. | 373 // pinning failure. It is a (somewhat) human-readable string. |
371 std::string pinning_failure_log_; | 374 std::string pinning_failure_log_; |
372 | 375 |
373 // True if PKP is bypassed due to a local trust anchor. | 376 // True if PKP is bypassed due to a local trust anchor. |
374 bool pkp_bypassed_; | 377 bool pkp_bypassed_; |
375 | 378 |
| 379 std::string ocsp_response_; |
| 380 |
376 BoundNetLog net_log_; | 381 BoundNetLog net_log_; |
377 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; | 382 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; |
378 }; | 383 }; |
379 | 384 |
380 } // namespace net | 385 } // namespace net |
381 | 386 |
382 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ | 387 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ |
OLD | NEW |