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_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/quic/crypto/channel_id.h" | 10 #include "net/quic/crypto/channel_id.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 STATE_INITIALIZE, | 97 STATE_INITIALIZE, |
98 STATE_SEND_CHLO, | 98 STATE_SEND_CHLO, |
99 STATE_RECV_REJ, | 99 STATE_RECV_REJ, |
100 STATE_VERIFY_PROOF, | 100 STATE_VERIFY_PROOF, |
101 STATE_VERIFY_PROOF_COMPLETE, | 101 STATE_VERIFY_PROOF_COMPLETE, |
102 STATE_GET_CHANNEL_ID, | 102 STATE_GET_CHANNEL_ID, |
103 STATE_GET_CHANNEL_ID_COMPLETE, | 103 STATE_GET_CHANNEL_ID_COMPLETE, |
104 STATE_RECV_SHLO, | 104 STATE_RECV_SHLO, |
105 }; | 105 }; |
106 | 106 |
| 107 // Handles new server config and optional source-address token provided by the |
| 108 // server during a connection. |
| 109 void HandleServerConfigUpdateMessage(const CryptoHandshakeMessage* in); |
| 110 |
107 // DoHandshakeLoop performs a step of the handshake state machine. Note that | 111 // DoHandshakeLoop performs a step of the handshake state machine. Note that |
108 // |in| may be NULL if the call did not result from a received message. | 112 // |in| may be NULL if the call did not result from a received message. |
109 void DoHandshakeLoop(const CryptoHandshakeMessage* in); | 113 void DoHandshakeLoop(const CryptoHandshakeMessage* in); |
110 | 114 |
111 // Called to set the proof of |cached| valid. Also invokes the session's | 115 // Called to set the proof of |cached| valid. Also invokes the session's |
112 // OnProofValid() method. | 116 // OnProofValid() method. |
113 void SetCachedProofValid(QuicCryptoClientConfig::CachedState* cached); | 117 void SetCachedProofValid(QuicCryptoClientConfig::CachedState* cached); |
114 | 118 |
115 // Returns true if the server crypto config in |cached| requires a ChannelID | 119 // Returns true if the server crypto config in |cached| requires a ChannelID |
116 // and the client config settings also allow sending a ChannelID. | 120 // and the client config settings also allow sending a ChannelID. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 bool verify_ok_; | 164 bool verify_ok_; |
161 string verify_error_details_; | 165 string verify_error_details_; |
162 scoped_ptr<ProofVerifyDetails> verify_details_; | 166 scoped_ptr<ProofVerifyDetails> verify_details_; |
163 | 167 |
164 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 168 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
165 }; | 169 }; |
166 | 170 |
167 } // namespace net | 171 } // namespace net |
168 | 172 |
169 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 173 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
OLD | NEW |