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

Side by Side Diff: runtime/bin/secure_socket_patch.dart

Issue 11415290: Add a callback to SecureSocket for certificates that fail to be authenticated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698