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

Unified Diff: sdk/lib/io/secure_socket.dart

Issue 11583026: Add automatic initialization of SecureSocket library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change documentation to match code. Created 8 years 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
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | tests/standalone/io/https_client_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/secure_socket.dart
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart
index 1dd433e7b0d687fcd107d1e26c85794c4bdff2be..2ece3c92d3ac6d2d6ef6431ec6f0ad63b8979ed3 100644
--- a/sdk/lib/io/secure_socket.dart
+++ b/sdk/lib/io/secure_socket.dart
@@ -7,7 +7,7 @@ part of dart.io;
/**
* SecureSocket provides a secure (SSL or TLS) client connection to a server.
* The certificate provided by the server is checked
- * using the certificate database provided in setCertificateDatabase.
+ * using the certificate database (optionally) provided in initialize().
*/
abstract class SecureSocket implements Socket {
/**
@@ -49,12 +49,16 @@ abstract class SecureSocket implements Socket {
X509Certificate get peerCertificate;
/**
- * Initializes the NSS library with the path to a certificate database
+ * Initializes the NSS library. If [initialize] is not called, the library
+ * is automatically initialized as if [initialize] were called with no
+ * arguments.
+ *
+ * The optional argument [database] is the path to a certificate database
* containing root certificates for verifying certificate paths on
* client connections, and server certificates to provide on server
- * connections. The password argument should be used when creating
+ * connections. The argument [password] should be used when creating
* secure server sockets, to allow the private key of the server
- * certificate to be fetched. If useBuiltinRoots is true (the default),
+ * certificate to be fetched. If [useBuiltinRoots] is true (the default),
* then a built-in set of root certificates for trusted certificate
* authorities is merged with the certificates in the database.
*
@@ -75,7 +79,7 @@ abstract class SecureSocket implements Socket {
* containing a cert9.db file, not a cert8.db file. This version of
* the database can be created using the NSS certutil tool with "sql:" in
* front of the absolute path of the database directory, or setting the
- * environment variable NSS_DEFAULT_DB_TYPE to "sql".
+ * environment variable [[NSS_DEFAULT_DB_TYPE]] to "sql".
*/
external static void initialize({String database,
String password,
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | tests/standalone/io/https_client_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698