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..f22692e8e1d97ca73d28b556cd121fd2c521b413 |
--- /dev/null |
+++ b/runtime/bin/tls_socket_patch.dart |
@@ -0,0 +1,12 @@ |
+// 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 */ factory TlsSocket(String host, int port) { |
+ return new _TlsSocket(host, port); |
+ } |
+ |
+ /* patch */ static void setCertificateDatabase(String pkcertDirectory) |
+ native "TlsSocket_SetCertificateDatabase"; |
+} |