| OLD | NEW |
| 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. |
| 11 * | 11 * |
| 12 * The [SecureSocket] and [SecureServerSocket] classes take a SecurityContext | 12 * The [SecureSocket] and [SecureServerSocket] classes take a SecurityContext |
| 13 * as an argument to their connect and bind methods. | 13 * as an argument to their connect and bind methods. |
| 14 * | 14 * |
| 15 * Certificates and keys can be added to a SecurityContext from either PEM | 15 * Certificates and keys can be added to a SecurityContext from either PEM |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 } | 258 } |
| 259 | 259 |
| 260 if (bytes.length >= (1 << 13)) { | 260 if (bytes.length >= (1 << 13)) { |
| 261 throw new ArgumentError( | 261 throw new ArgumentError( |
| 262 'The maximum message length supported is 2^13-1.'); | 262 'The maximum message length supported is 2^13-1.'); |
| 263 } | 263 } |
| 264 | 264 |
| 265 return new Uint8List.fromList(bytes); | 265 return new Uint8List.fromList(bytes); |
| 266 } | 266 } |
| 267 } | 267 } |
| OLD | NEW |