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

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

Issue 1648793005: Adds SecurityContext.useCertificateChainBytes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: *AsBytes -> *Bytes Created 4 years, 11 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 | « sdk/lib/io/http.dart ('k') | tests/standalone/io/http_proxy_advanced_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/security_context.dart
diff --git a/sdk/lib/io/security_context.dart b/sdk/lib/io/security_context.dart
index 5b666672845764e5949b0c25467292ce9708ec94..76ca8e654e12314018d8c65a119cb4c0e227b914 100644
--- a/sdk/lib/io/security_context.dart
+++ b/sdk/lib/io/security_context.dart
@@ -80,12 +80,28 @@ abstract class SecurityContext {
/**
* Sets the chain of X509 certificates served by [SecureServer]
* when making secure connections, including the server certificate.
- * [file] is an PEM file containing X509 certificates, starting with
+ *
+ * [file] is a PEM file containing X509 certificates, starting with
* the root authority and intermediate authorities forming the signed
* chain to the server certificate, and ending with the server certificate.
* The private key for the server certificate is set by [usePrivateKey].
+ *
+ * The function returns a [Future] that completes when the certificate chain
+ * has been set.
+ */
+ Future useCertificateChain(String file);
+
+ /**
+ * Sets the chain of X509 certificates served by [SecureServer]
+ * when making secure connections, including the server certificate.
+ *
+ * [chainBytes] is the contents of a PEM file containing X509 certificates,
+ * starting with the root authority and intermediate authorities forming the
+ * signed chain to the server certificate, and ending with the server
+ * certificate. The private key for the server certificate is set by
+ * [usePrivateKey].
*/
- void useCertificateChain(String file);
+ void useCertificateChainAsBytes(List<int> chainBytes);
/**
* Sets the list of authority names that a [SecureServer] will advertise
« no previous file with comments | « sdk/lib/io/http.dart ('k') | tests/standalone/io/http_proxy_advanced_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698