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

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

Issue 2926153004: Removed SecurityContext.alpnSupported, as ALPN is now supported on all platforms. Also updated CHAN… (Closed)
Patch Set: Removed SecurityContext.alpnSupported, as ALPN is now supported on all platforms. Also updated CHAN… Created 3 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 * The object containing the certificates to trust when making 8 * The object containing the certificates to trust when making
9 * a secure client connection, and the certificate chain and 9 * a secure client connection, and the certificate chain and
10 * private key to serve from a secure server. 10 * private key to serve from a secure server.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 /** 142 /**
143 * Sets the list of authority names that a [SecureServerSocket] will advertise 143 * Sets the list of authority names that a [SecureServerSocket] will advertise
144 * as accepted, when requesting a client certificate from a connecting 144 * as accepted, when requesting a client certificate from a connecting
145 * client. 145 * client.
146 * 146 *
147 * Like [setClientAuthorities] but takes the contents of the file. 147 * Like [setClientAuthorities] but takes the contents of the file.
148 */ 148 */
149 void setClientAuthoritiesBytes(List<int> authCertBytes, {String password}); 149 void setClientAuthoritiesBytes(List<int> authCertBytes, {String password});
150 150
151 /** 151 /**
152 * Whether the platform supports ALPN.
153 */
154 external static bool get alpnSupported;
155
156 /**
157 * Sets the list of application-level protocols supported by a client 152 * Sets the list of application-level protocols supported by a client
158 * connection or server connection. The ALPN (application level protocol 153 * connection or server connection. The ALPN (application level protocol
159 * negotiation) extension to TLS allows a client to send a list of 154 * negotiation) extension to TLS allows a client to send a list of
160 * protocols in the TLS client hello message, and the server to pick 155 * protocols in the TLS client hello message, and the server to pick
161 * one and send the selected one back in its server hello message. 156 * one and send the selected one back in its server hello message.
162 * 157 *
163 * Separate lists of protocols can be sent for client connections and 158 * Separate lists of protocols can be sent for client connections and
164 * for server connections, using the same SecurityContext. The [isServer] 159 * for server connections, using the same SecurityContext. The [isServer]
165 * boolean argument specifies whether to set the list for server connections 160 * boolean argument specifies whether to set the list for server connections
166 * or client connections. 161 * or client connections.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 253 }
259 254
260 if (bytes.length >= (1 << 13)) { 255 if (bytes.length >= (1 << 13)) {
261 throw new ArgumentError( 256 throw new ArgumentError(
262 'The maximum message length supported is 2^13-1.'); 257 'The maximum message length supported is 2^13-1.');
263 } 258 }
264 259
265 return new Uint8List.fromList(bytes); 260 return new Uint8List.fromList(bytes);
266 } 261 }
267 } 262 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/io_patch.dart ('k') | tests/standalone/io/secure_socket_alpn_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698