| 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 #include "net/quic/quic_crypto_client_stream.h" | 5 #include "net/quic/quic_crypto_client_stream.h" |
| 6 | 6 |
| 7 #include "net/quic/crypto/crypto_protocol.h" | 7 #include "net/quic/crypto/crypto_protocol.h" |
| 8 #include "net/quic/quic_protocol.h" | 8 #include "net/quic/quic_protocol.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 CloseConnection(QUIC_CRYPTO_MESSAGE_AFTER_HANDSHAKE_COMPLETE); | 21 CloseConnection(QUIC_CRYPTO_MESSAGE_AFTER_HANDSHAKE_COMPLETE); |
| 22 return; | 22 return; |
| 23 } | 23 } |
| 24 | 24 |
| 25 if (message.tag != kSHLO) { | 25 if (message.tag != kSHLO) { |
| 26 CloseConnection(QUIC_INVALID_CRYPTO_MESSAGE_TYPE); | 26 CloseConnection(QUIC_INVALID_CRYPTO_MESSAGE_TYPE); |
| 27 return; | 27 return; |
| 28 } | 28 } |
| 29 | 29 |
| 30 // TODO(rch): correctly validate the message | 30 // TODO(rch): correctly validate the message |
| 31 set_handshake_complete(true); | 31 SetHandshakeComplete(QUIC_NO_ERROR); |
| 32 return; | 32 return; |
| 33 } | 33 } |
| 34 | 34 |
| 35 } // namespace net | 35 } // namespace net |
| OLD | NEW |