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

Unified Diff: runtime/bin/secure_socket_patch.dart

Issue 21716004: dart:io | Add SecureSocket.importPrivateCertificates, that reads a PKCS#12 file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add delayed deletion of locked temp directory on Windows. Created 7 years, 4 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: runtime/bin/secure_socket_patch.dart
diff --git a/runtime/bin/secure_socket_patch.dart b/runtime/bin/secure_socket_patch.dart
index 96d6565ae21e6e4bd5d4b07cac47f952badedd23..67052d8f6151911debdf1535e115f7de37e756c4 100644
--- a/runtime/bin/secure_socket_patch.dart
+++ b/runtime/bin/secure_socket_patch.dart
@@ -8,12 +8,27 @@ patch class SecureSocket {
/* patch */ static void initialize({String database,
String password,
- bool useBuiltinRoots: true})
+ bool useBuiltinRoots: true,
+ bool readOnly: true})
native "SecureSocket_InitializeLibrary";
/* patch */ static X509Certificate addCertificate(List<int> certificate,
String trust)
native "SecureSocket_AddCertificate";
+
+ /* patch */ static importCertificatesWithPrivateKeys(List<int> certificates,
+ String password)
+ native "SecureSocket_ImportCertificatesWithPrivateKeys";
+
+ /* patch */ static X509Certificate changeTrust(String nickname,
+ String trust)
+ native "SecureSocket_ChangeTrust";
+
+ /* patch */ static getCertificate(String nickname)
+ native "SecureSocket_GetCertificate";
+
+ /* patch */ static removeCertificate(String nickname)
+ native "SecureSocket_RemoveCertificate";
}

Powered by Google App Engine
This is Rietveld 408576698