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

Side by Side Diff: lib/io/tls_socket.dart

Issue 10916081: Add secure sockets to dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo in bin.gypi 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 abstract class TlsSocket implements Socket {
6 /**
7 * Constructs a new secure socket and connect it to the given
8 * host on the given port. The returned socket is not yet connected
9 * but ready for registration of callbacks.
10 */
11 external factory TlsSocket(String host, int port);
12
13 /**
14 * Initializes the TLS library with the path to a certificate database
15 * containing root certificates for verifying certificate paths on
16 * client connections, and server certificates to provide on server
17 * connections.
18 */
19 external static void setCertificateDatabase(String pkcertDirectory);
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698