OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "remoting/protocol/jingle_session.h" | 5 #include "remoting/protocol/jingle_session.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "crypto/rsa_private_key.h" | 8 #include "crypto/rsa_private_key.h" |
9 #include "jingle/glue/channel_socket_adapter.h" | 9 #include "jingle/glue/channel_socket_adapter.h" |
10 #include "jingle/glue/pseudotcp_adapter.h" | 10 #include "jingle/glue/pseudotcp_adapter.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 const char kEventChannelName[] = "event"; | 38 const char kEventChannelName[] = "event"; |
39 const char kVideoChannelName[] = "video"; | 39 const char kVideoChannelName[] = "video"; |
40 const char kVideoRtpChannelName[] = "videortp"; | 40 const char kVideoRtpChannelName[] = "videortp"; |
41 const char kVideoRtcpChannelName[] = "videortcp"; | 41 const char kVideoRtcpChannelName[] = "videortcp"; |
42 | 42 |
43 // Helper method to create a SSL client socket. | 43 // Helper method to create a SSL client socket. |
44 net::SSLClientSocket* CreateSSLClientSocket( | 44 net::SSLClientSocket* CreateSSLClientSocket( |
45 net::StreamSocket* socket, scoped_refptr<net::X509Certificate> cert, | 45 net::StreamSocket* socket, scoped_refptr<net::X509Certificate> cert, |
46 net::CertVerifier* cert_verifier) { | 46 net::CertVerifier* cert_verifier) { |
47 net::SSLConfig ssl_config; | 47 net::SSLConfig ssl_config; |
| 48 ssl_config.cached_info_enabled = false; |
48 ssl_config.false_start_enabled = false; | 49 ssl_config.false_start_enabled = false; |
49 ssl_config.ssl3_enabled = true; | 50 ssl_config.ssl3_enabled = true; |
50 ssl_config.tls1_enabled = true; | 51 ssl_config.tls1_enabled = true; |
51 | 52 |
52 // Certificate provided by the host doesn't need authority. | 53 // Certificate provided by the host doesn't need authority. |
53 net::SSLConfig::CertAndStatus cert_and_status; | 54 net::SSLConfig::CertAndStatus cert_and_status; |
54 cert_and_status.cert_status = net::CERT_STATUS_AUTHORITY_INVALID; | 55 cert_and_status.cert_status = net::CERT_STATUS_AUTHORITY_INVALID; |
55 cert_and_status.cert = cert; | 56 cert_and_status.cert = cert; |
56 ssl_config.allowed_bad_certs.push_back(cert_and_status); | 57 ssl_config.allowed_bad_certs.push_back(cert_and_status); |
57 | 58 |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 | 543 |
543 state_ = new_state; | 544 state_ = new_state; |
544 if (!closed_ && state_change_callback_.get()) | 545 if (!closed_ && state_change_callback_.get()) |
545 state_change_callback_->Run(new_state); | 546 state_change_callback_->Run(new_state); |
546 } | 547 } |
547 } | 548 } |
548 | 549 |
549 } // namespace protocol | 550 } // namespace protocol |
550 | 551 |
551 } // namespace remoting | 552 } // namespace remoting |
OLD | NEW |