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); | |
wtc
2014/07/16 17:03:06
I seem to remember I also suggested changing this
ramant (doing other things)
2014/07/16 19:43:21
Done.
| |
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
157 bool verify_ok_; | 161 bool verify_ok_; |
158 string verify_error_details_; | 162 string verify_error_details_; |
159 scoped_ptr<ProofVerifyDetails> verify_details_; | 163 scoped_ptr<ProofVerifyDetails> verify_details_; |
160 | 164 |
161 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 165 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
162 }; | 166 }; |
163 | 167 |
164 } // namespace net | 168 } // namespace net |
165 | 169 |
166 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 170 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
OLD | NEW |