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

Unified Diff: dart/sdk/lib/io/secure_server_socket.dart

Issue 625953002: Support for the ALPN extension of the TLS protocol for Client and Server (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/runtime/bin/secure_socket_unsupported.cc ('k') | dart/sdk/lib/io/secure_socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/io/secure_server_socket.dart
diff --git a/dart/sdk/lib/io/secure_server_socket.dart b/dart/sdk/lib/io/secure_server_socket.dart
index 45cb5a6ec17eef14c273dd67cc8521a972b2b4e8..1a0bf6efbb7e478c8e93a681a547cc14c2a74769 100644
--- a/dart/sdk/lib/io/secure_server_socket.dart
+++ b/dart/sdk/lib/io/secure_server_socket.dart
@@ -66,7 +66,8 @@ class SecureServerSocket extends Stream<SecureSocket> {
{int backlog: 0,
bool v6Only: false,
bool requestClientCertificate: false,
- bool requireClientCertificate: false}) {
+ bool requireClientCertificate: false,
+ List<String> supportedProtocols}) {
return RawSecureServerSocket.bind(
address,
port,
@@ -74,7 +75,8 @@ class SecureServerSocket extends Stream<SecureSocket> {
backlog: backlog,
v6Only: v6Only,
requestClientCertificate: requestClientCertificate,
- requireClientCertificate: requireClientCertificate).then(
+ requireClientCertificate: requireClientCertificate,
+ supportedProtocols: supportedProtocols).then(
(serverSocket) => new SecureServerSocket._(serverSocket));
}
@@ -122,12 +124,14 @@ class RawSecureServerSocket extends Stream<RawSecureSocket> {
final String certificateName;
final bool requestClientCertificate;
final bool requireClientCertificate;
+ final List<String> supportedProtocols;
bool _closed = false;
RawSecureServerSocket._(RawServerSocket serverSocket,
this.certificateName,
this.requestClientCertificate,
- this.requireClientCertificate) {
+ this.requireClientCertificate,
+ this.supportedProtocols) {
_socket = serverSocket;
_controller = new StreamController<RawSecureSocket>(
sync: true,
@@ -187,13 +191,15 @@ class RawSecureServerSocket extends Stream<RawSecureSocket> {
{int backlog: 0,
bool v6Only: false,
bool requestClientCertificate: false,
- bool requireClientCertificate: false}) {
+ bool requireClientCertificate: false,
+ List<String> supportedProtocols}) {
return RawServerSocket.bind(address, port, backlog: backlog, v6Only: v6Only)
.then((serverSocket) => new RawSecureServerSocket._(
serverSocket,
certificateName,
requestClientCertificate,
- requireClientCertificate));
+ requireClientCertificate,
+ supportedProtocols));
}
StreamSubscription<RawSecureSocket> listen(void onData(RawSecureSocket s),
@@ -241,7 +247,8 @@ class RawSecureServerSocket extends Stream<RawSecureSocket> {
is_server: true,
socket: connection,
requestClientCertificate: requestClientCertificate,
- requireClientCertificate: requireClientCertificate)
+ requireClientCertificate: requireClientCertificate,
+ supportedProtocols: supportedProtocols)
.then((RawSecureSocket secureConnection) {
if (_closed) {
secureConnection.close();
« no previous file with comments | « dart/runtime/bin/secure_socket_unsupported.cc ('k') | dart/sdk/lib/io/secure_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698