| 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 initialize({String database, | 6 /* patch */ static void initialize({String database, |
| 7 String password, | 7 String password, |
| 8 bool useBuiltinRoots: true}) | 8 bool useBuiltinRoots: true}) |
| 9 native "SecureSocket_InitializeLibrary"; | 9 native "SecureSocket_InitializeLibrary"; |
| 10 } | 10 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 } | 45 } |
| 46 | 46 |
| 47 void _destroy() native "SecureSocket_Destroy"; | 47 void _destroy() native "SecureSocket_Destroy"; |
| 48 | 48 |
| 49 void handshake() native "SecureSocket_Handshake"; | 49 void handshake() native "SecureSocket_Handshake"; |
| 50 | 50 |
| 51 void init() native "SecureSocket_Init"; | 51 void init() native "SecureSocket_Init"; |
| 52 | 52 |
| 53 int processBuffer(int bufferIndex) native "SecureSocket_ProcessBuffer"; | 53 int processBuffer(int bufferIndex) native "SecureSocket_ProcessBuffer"; |
| 54 | 54 |
| 55 void registerBadCertificateCallback(Function callback) |
| 56 native "SecureSocket_RegisterBadCertificateCallback"; |
| 57 |
| 55 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler) | 58 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler) |
| 56 native "SecureSocket_RegisterHandshakeCompleteCallback"; | 59 native "SecureSocket_RegisterHandshakeCompleteCallback"; |
| 57 | 60 |
| 58 List<_ExternalBuffer> buffers; | 61 List<_ExternalBuffer> buffers; |
| 59 } | 62 } |
| OLD | NEW |