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

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

Issue 18097007: Add SecureSocket.addCertificate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add documentation link, and some constant trust strings. Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | sdk/lib/_internal/lib/io_patch.dart » ('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) 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 */ factory SecureSocket._(RawSecureSocket rawSocket) => 6 /* patch */ factory SecureSocket._(RawSecureSocket rawSocket) =>
7 new _SecureSocket(rawSocket); 7 new _SecureSocket(rawSocket);
8 8
9 /* patch */ static void initialize({String database, 9 /* patch */ static void initialize({String database,
10 String password, 10 String password,
11 bool useBuiltinRoots: true}) 11 bool useBuiltinRoots: true})
12 native "SecureSocket_InitializeLibrary"; 12 native "SecureSocket_InitializeLibrary";
13
14 /* patch */ static X509Certificate addCertificate(List<int> certificate,
15 String trust)
16 native "SecureSocket_AddCertificate";
13 } 17 }
14 18
15 19
16 patch class _SecureFilter { 20 patch class _SecureFilter {
17 /* patch */ factory _SecureFilter() => new _SecureFilterImpl(); 21 /* patch */ factory _SecureFilter() => new _SecureFilterImpl();
18 22
19 /* patch */ static SendPort _newServicePort() 23 /* patch */ static SendPort _newServicePort()
20 native "SecureSocket_NewServicePort"; 24 native "SecureSocket_NewServicePort";
21 } 25 }
22 26
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 native "SecureSocket_RegisterBadCertificateCallback"; 108 native "SecureSocket_RegisterBadCertificateCallback";
105 109
106 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler) 110 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler)
107 native "SecureSocket_RegisterHandshakeCompleteCallback"; 111 native "SecureSocket_RegisterHandshakeCompleteCallback";
108 112
109 // This is a security issue, as it exposes a raw pointer to Dart code. 113 // This is a security issue, as it exposes a raw pointer to Dart code.
110 int _pointer() native "SecureSocket_FilterPointer"; 114 int _pointer() native "SecureSocket_FilterPointer";
111 115
112 List<_ExternalBuffer> buffers; 116 List<_ExternalBuffer> buffers;
113 } 117 }
OLDNEW
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | sdk/lib/_internal/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698