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

Side by Side Diff: sdk/lib/io/secure_socket.dart

Issue 14766005: Use correct address host for NSS. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io; 5 part of dart.io;
6 6
7 /** 7 /**
8 * A high-level class for communicating securely over a TCP socket, using 8 * A high-level class for communicating securely over a TCP socket, using
9 * TLS and SSL. The [SecureSocket] exposes both a [Stream] and an 9 * TLS and SSL. The [SecureSocket] exposes both a [Stream] and an
10 * [IOSink] interface, making it ideal for using together with 10 * [IOSink] interface, making it ideal for using together with
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 // create a new one. 454 // create a new one.
455 _socketSubscription = _socket.listen(_eventDispatcher, 455 _socketSubscription = _socket.listen(_eventDispatcher,
456 onError: _errorHandler, 456 onError: _errorHandler,
457 onDone: _doneHandler); 457 onDone: _doneHandler);
458 } else { 458 } else {
459 _socketSubscription.onData(_eventDispatcher); 459 _socketSubscription.onData(_eventDispatcher);
460 _socketSubscription.onError(_errorHandler); 460 _socketSubscription.onError(_errorHandler);
461 _socketSubscription.onDone(_doneHandler); 461 _socketSubscription.onDone(_doneHandler);
462 } 462 }
463 _connectPending = true; 463 _connectPending = true;
464 _secureFilter.connect(address.host, 464 _secureFilter.connect(rawSocket.address.host,
465 port, 465 port,
466 is_server, 466 is_server,
467 certificateName, 467 certificateName,
468 requestClientCertificate || 468 requestClientCertificate ||
469 requireClientCertificate, 469 requireClientCertificate,
470 requireClientCertificate, 470 requireClientCertificate,
471 sendClientCertificate); 471 sendClientCertificate);
472 _status = HANDSHAKE; 472 _status = HANDSHAKE;
473 _secureHandshake(); 473 _secureHandshake();
474 }) 474 })
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 void destroy(); 965 void destroy();
966 void handshake(); 966 void handshake();
967 void init(); 967 void init();
968 X509Certificate get peerCertificate; 968 X509Certificate get peerCertificate;
969 int processBuffer(int bufferIndex); 969 int processBuffer(int bufferIndex);
970 void registerBadCertificateCallback(Function callback); 970 void registerBadCertificateCallback(Function callback);
971 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler); 971 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler);
972 972
973 List<_ExternalBuffer> get buffers; 973 List<_ExternalBuffer> get buffers;
974 } 974 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698