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

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

Issue 16081005: dart:io | Add documentation for the default root certificate database for secure networking. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months 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 | « no previous file | no next file » | 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 08912cc8c199858274ba26d53904a25aa9012e48..5bb3aba8eaa092ece7f49f89ea65988e671d7e7e 100644
--- a/sdk/lib/io/secure_socket.dart
+++ b/sdk/lib/io/secure_socket.dart
@@ -149,23 +149,28 @@ abstract class SecureSocket implements Socket {
* arguments.
*
* The optional argument [database] is the path to a certificate database
- * containing root certificates for verifying certificate paths on
+ * directory containing root certificates for verifying certificate paths on
* client connections, and server certificates to provide on server
* 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),
* then a built-in set of root certificates for trusted certificate
* authorities is merged with the certificates in the database.
+ * The list of built-in root certificates, and documentation about this
+ * default database, is available at
+ * http://www.mozilla.org/projects/security/certs/included/ .
+ * If no value is provided for the [database] argument, then only the
Lasse Reichstein Nielsen 2013/05/31 08:49:06 We'd usually write "If the [database] argument is
Bill Hesse 2013/05/31 09:08:38 Done.
+ * builtin root certificates are used, unless they are disabled.
Lasse Reichstein Nielsen 2013/05/31 08:49:06 "unless they are disabled"? How can they be disabl
Bill Hesse 2013/05/31 09:08:38 Done.
*
* Examples:
* 1) Use only the builtin root certificates:
* SecureSocket.initialize(); or
*
- * 2) Use a specified database and the builtin roots:
+ * 2) Use a specified database directory and the builtin roots:
* SecureSocket.initialize(database: 'path/to/my/database',
* password: 'my_password');
*
- * 3) Use a specified database, without builtin roots:
+ * 3) Use a specified database directory, without builtin roots:
* SecureSocket.initialize(database: 'path/to/my/database',
* password: 'my_password'.
* useBuiltinRoots: false);
Lasse Reichstein Nielsen 2013/05/31 08:49:06 So what happens if you do: initialize(password:
Bill Hesse 2013/05/31 09:08:38 Nothing useful. No certificates are available. y
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698