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

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

Issue 1721283002: Implements secure sockets on Mac OS with SecureTransport API (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 9 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
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | tests/standalone/io/certificates/client1_key.p12 » ('j') | 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) 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 /** 119 /**
120 * Sets the list of authority names that a [SecureServer] will advertise 120 * Sets the list of authority names that a [SecureServer] will advertise
121 * as accepted, when requesting a client certificate from a connecting 121 * as accepted, when requesting a client certificate from a connecting
122 * client. 122 * client.
123 * 123 *
124 * Like [setClientAuthority] but takes the contents of the file. 124 * Like [setClientAuthority] but takes the contents of the file.
125 */ 125 */
126 void setClientAuthoritiesBytes(List<int> authCertBytes, {String password}); 126 void setClientAuthoritiesBytes(List<int> authCertBytes, {String password});
127 127
128 /** 128 /**
129 * Whether the platform supports ALPN.
130 */
131 external static bool get alpnSupported;
132
133 /**
129 * Sets the list of application-level protocols supported by a client 134 * Sets the list of application-level protocols supported by a client
130 * connection or server connection. The ALPN (application level protocol 135 * connection or server connection. The ALPN (application level protocol
131 * negotiation) extension to TLS allows a client to send a list of 136 * negotiation) extension to TLS allows a client to send a list of
132 * protocols in the TLS client hello message, and the server to pick 137 * protocols in the TLS client hello message, and the server to pick
133 * one and send the selected one back in its server hello message. 138 * one and send the selected one back in its server hello message.
134 * 139 *
135 * Separate lists of protocols can be sent for client connections and 140 * Separate lists of protocols can be sent for client connections and
136 * for server connections, using the same SecurityContext. The [isServer] 141 * for server connections, using the same SecurityContext. The [isServer]
137 * boolean argument specifies whether to set the list for server connections 142 * boolean argument specifies whether to set the list for server connections
138 * or client connections. 143 * or client connections.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 } 235 }
231 236
232 if (bytes.length >= (1 << 13)) { 237 if (bytes.length >= (1 << 13)) {
233 throw new ArgumentError( 238 throw new ArgumentError(
234 'The maximum message length supported is 2^13-1.'); 239 'The maximum message length supported is 2^13-1.');
235 } 240 }
236 241
237 return new Uint8List.fromList(bytes); 242 return new Uint8List.fromList(bytes);
238 } 243 }
239 } 244 }
OLDNEW
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | tests/standalone/io/certificates/client1_key.p12 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698