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

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

Issue 1616073004: Adds SecurityContext.usePrivateKeyBytes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Un-deprecate usePrivateKey. Implement using usePrivateKeyAsBytes 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
Index: sdk/lib/io/http.dart
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart
index c63d28bbce211b81f032f3128ae0a97a05ba9a6e..e713f2299ee7d7d5d19f3f85728ddfe1ece5d188 100644
--- a/sdk/lib/io/http.dart
+++ b/sdk/lib/io/http.dart
@@ -109,7 +109,7 @@ abstract class HttpStatus {
* Platform.script.resolve('certificates/server_key.pem')
* .toFilePath();
* context.useCertificateChain(chain);
- * context.usePrivateKey(key, password: 'dartdart');
+ * context.usePrivateKeyAsBytes(keyBytes, password: 'dartdart');
Bill Hesse 2016/01/29 14:41:50 Either load the file as bytes, or use usePrivateKe
zra 2016/01/29 16:47:49 `useCertificateChain` will also be changing to ret
*
* HttpServer
* .bindSecure(InternetAddress.ANY_IP_V6,

Powered by Google App Engine
This is Rietveld 408576698