Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: remoting/protocol/jingle_session.cc

Issue 7058049: Added client-side support for the TLS cached info extension. This feature is disabled by default ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Added Null pointer check Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« net/third_party/nss/ssl/ssl3ext.c ('K') | « net/third_party/nss/ssl/sslt.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698