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

Unified Diff: runtime/bin/secure_socket_patch.dart

Issue 11467004: Enable client certificates in SecureSocket and SecureServerSocket (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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
Index: runtime/bin/secure_socket_patch.dart
diff --git a/runtime/bin/secure_socket_patch.dart b/runtime/bin/secure_socket_patch.dart
index c511465da0560979d143566f81198297f04abb72..9e79c86695e9dd987f38f5245bf9ff0b240b04b3 100644
--- a/runtime/bin/secure_socket_patch.dart
+++ b/runtime/bin/secure_socket_patch.dart
@@ -37,7 +37,10 @@ class _SecureFilterImpl
void connect(String hostName,
int port,
bool is_server,
- String certificate_name) native "SecureSocket_Connect";
+ String certificateName,
+ bool requestClientCertificate,
+ bool requireClientCertificate,
+ bool sendClientCertificate) native "SecureSocket_Connect";
void destroy() {
buffers = null;
@@ -50,6 +53,8 @@ class _SecureFilterImpl
void init() native "SecureSocket_Init";
+ X509Certificate get peerCertificate native "SecureSocket_PeerCertificate";
+
int processBuffer(int bufferIndex) native "SecureSocket_ProcessBuffer";
void registerBadCertificateCallback(Function callback)

Powered by Google App Engine
This is Rietveld 408576698