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

Unified Diff: runtime/bin/tls_socket_patch.dart

Issue 10916081: Add secure sockets to dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments (done). Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/tls_socket_patch.dart
diff --git a/runtime/bin/tls_socket_patch.dart b/runtime/bin/tls_socket_patch.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e5bf8bd910a8e66c44b240d424c42f3a0928bcb6
--- /dev/null
+++ b/runtime/bin/tls_socket_patch.dart
@@ -0,0 +1,21 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+patch class TlsSocket {
+ /* patch */ static void setCertificateDatabase(String pkcertDirectory)
+ native "TlsSocket_SetCertificateDatabase";
+}
+
+patch class _TlsFilter extends NativeFieldWrapperClass1 {
+ /* patch */ void init() native "TlsSocket_Init";
+
+ /* patch */ void connect() native "TlsSocket_Connect";
+
+ /* patch */ void registerHandshakeCallbacks(Function startHandshakeHandler,
+ Function finishHandshakeHandler)
+ native "TlsSocket_RegisterHandshakeCallbacks";
+ /* patch */ int processBuffer(int bufferIndex)
+ native "TlsSocket_ProcessBuffer";
+ /* patch */ void destroy() native "TlsSocket_Destroy";
+}

Powered by Google App Engine
This is Rietveld 408576698