Index: runtime/bin/tls_socket.dart |
diff --git a/runtime/bin/tls_socket.dart b/runtime/bin/tls_socket.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2471a9c52d70d12d25a087fef3335820d011d0ea |
--- /dev/null |
+++ b/runtime/bin/tls_socket.dart |
@@ -0,0 +1,15 @@ |
+// 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. |
+ |
+abstract class TlsSocket implements Socket, Hashable { |
Mads Ager (google)
2012/09/28 12:03:57
Hashable is gone when you rebase. You should just
|
+ /** |
+ * Constructs a new secure socket and connect it to the given |
+ * host on the given port. The returned socket is not yet connected |
+ * but ready for registration of callbacks. |
+ */ |
+ factory TlsSocket(String host, int port) => new _TlsSocket(host, port); |
+ |
+ static void setCertificateDatabase(String pkcertDirectory) |
+ native "TlsSocket_SetCertificateDatabase"; |
+} |