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

Side by Side Diff: jingle/notifier/base/chrome_async_socket.cc

Issue 4339001: Correctly handle SSL Client Authentication requests when connecting... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "jingle/notifier/base/chrome_async_socket.h" 5 #include "jingle/notifier/base/chrome_async_socket.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <winsock2.h> 8 #include <winsock2.h>
9 #elif defined(OS_POSIX) 9 #elif defined(OS_POSIX)
10 #include <arpa/inet.h> 10 #include <arpa/inet.h>
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 read_start_ = 0U; 428 read_start_ = 0U;
429 read_end_ = 0U; 429 read_end_ = 0U;
430 DCHECK_EQ(write_end_, 0U); 430 DCHECK_EQ(write_end_, 0U);
431 431
432 // Clear out any posted DoRead() tasks. 432 // Clear out any posted DoRead() tasks.
433 scoped_runnable_method_factory_.RevokeAll(); 433 scoped_runnable_method_factory_.RevokeAll();
434 434
435 DCHECK(transport_socket_.get()); 435 DCHECK(transport_socket_.get());
436 transport_socket_.reset( 436 transport_socket_.reset(
437 client_socket_factory_->CreateSSLClientSocket( 437 client_socket_factory_->CreateSSLClientSocket(
438 transport_socket_.release(), domain_name, ssl_config_, 438 transport_socket_.release(), domain_name, /*TODO(rch)*/-1,
wtc 2010/11/11 01:11:35 Please pass 443 instead of -1 as the temporary por
Ryan Hamilton 2010/11/11 18:57:00 Done.
439 NULL /* ssl_host_info */)); 439 ssl_config_, NULL /* ssl_host_info */));
440 int status = transport_socket_->Connect(&ssl_connect_callback_); 440 int status = transport_socket_->Connect(&ssl_connect_callback_);
441 if (status != net::ERR_IO_PENDING) { 441 if (status != net::ERR_IO_PENDING) {
442 MessageLoop* message_loop = MessageLoop::current(); 442 MessageLoop* message_loop = MessageLoop::current();
443 CHECK(message_loop); 443 CHECK(message_loop);
444 message_loop->PostTask( 444 message_loop->PostTask(
445 FROM_HERE, 445 FROM_HERE,
446 scoped_runnable_method_factory_.NewRunnableMethod( 446 scoped_runnable_method_factory_.NewRunnableMethod(
447 &ChromeAsyncSocket::ProcessSSLConnectDone, status)); 447 &ChromeAsyncSocket::ProcessSSLConnectDone, status));
448 } 448 }
449 return true; 449 return true;
(...skipping 18 matching lines...) Expand all
468 } 468 }
469 state_ = STATE_TLS_OPEN; 469 state_ = STATE_TLS_OPEN;
470 PostDoRead(); 470 PostDoRead();
471 if (write_end_ > 0U) { 471 if (write_end_ > 0U) {
472 PostDoWrite(); 472 PostDoWrite();
473 } 473 }
474 SignalSSLConnected(); 474 SignalSSLConnected();
475 } 475 }
476 476
477 } // namespace notifier 477 } // namespace notifier
OLDNEW
« no previous file with comments | « no previous file | jingle/notifier/base/xmpp_client_socket_factory.h » ('j') | jingle/notifier/base/xmpp_client_socket_factory.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698