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

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

Issue 11308271: Add built-in root certificates to dart:io SecureSocket. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add crash to Windows status (issue 7102) 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
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | runtime/bin/socket_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 */ 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
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 }
OLDNEW
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | runtime/bin/socket_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698