OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 patch class SecureSocket { | 5 patch class SecureSocket { |
6 /* patch */ static void setCertificateDatabase(String certificateDatabase, | 6 /* patch */ static void initialize({String database, |
7 [String password]) | 7 String password, |
8 native "SecureSocket_SetCertificateDatabase"; | 8 bool useBuiltinRoots: true}) |
| 9 native "SecureSocket_InitializeLibrary"; |
9 } | 10 } |
10 | 11 |
11 | 12 |
12 patch class _SecureFilter { | 13 patch class _SecureFilter { |
13 /* patch */ factory _SecureFilter() => new _SecureFilterImpl(); | 14 /* patch */ factory _SecureFilter() => new _SecureFilterImpl(); |
14 } | 15 } |
15 | 16 |
16 | 17 |
17 /** | 18 /** |
18 * _SecureFilterImpl wraps a filter that encrypts and decrypts data travelling | 19 * _SecureFilterImpl wraps a filter that encrypts and decrypts data travelling |
(...skipping 30 matching lines...) Expand all Loading... |
49 | 50 |
50 void init() native "SecureSocket_Init"; | 51 void init() native "SecureSocket_Init"; |
51 | 52 |
52 int processBuffer(int bufferIndex) native "SecureSocket_ProcessBuffer"; | 53 int processBuffer(int bufferIndex) native "SecureSocket_ProcessBuffer"; |
53 | 54 |
54 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler) | 55 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler) |
55 native "SecureSocket_RegisterHandshakeCompleteCallback"; | 56 native "SecureSocket_RegisterHandshakeCompleteCallback"; |
56 | 57 |
57 List<_ExternalBuffer> buffers; | 58 List<_ExternalBuffer> buffers; |
58 } | 59 } |
OLD | NEW |