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

Unified Diff: runtime/bin/tls_socket_patch.dart

Issue 11414009: Secure server sockets for dart:io. Add TlsServerSocket class, providing SSL server sockets. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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
index 73e40e815076e40ac68ead319a8e4f350048cf5b..e8fa1cc7e2043a71b63618a15f7d8cdd45f17b11 100644
--- a/runtime/bin/tls_socket_patch.dart
+++ b/runtime/bin/tls_socket_patch.dart
@@ -3,7 +3,8 @@
// BSD-style license that can be found in the LICENSE file.
patch class TlsSocket {
- /* patch */ static void setCertificateDatabase(String pkcertDirectory)
+ /* patch */ static void setCertificateDatabase(String certificateDatabase,
+ [String password])
native "TlsSocket_SetCertificateDatabase";
}
@@ -30,7 +31,10 @@ class _TlsFilterImpl extends NativeFieldWrapperClass1 implements _TlsFilter {
}
}
- void connect(String hostName, int port) native "TlsSocket_Connect";
+ void connect(String hostName,
+ int port,
+ bool is_server,
+ String certificate_name) native "TlsSocket_Connect";
void destroy() {
buffers = null;

Powered by Google App Engine
This is Rietveld 408576698