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

Unified Diff: dart/runtime/bin/secure_socket_patch.dart

Issue 625953002: Support for the ALPN extension of the TLS protocol for Client and Server (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | « dart/runtime/bin/secure_socket.cc ('k') | dart/runtime/bin/secure_socket_unsupported.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/bin/secure_socket_patch.dart
diff --git a/dart/runtime/bin/secure_socket_patch.dart b/dart/runtime/bin/secure_socket_patch.dart
index 450738a74056373cdc22c292772dd753aa301f7e..4e22a1440f6e048753b5c3512150cc06c07acfb8 100644
--- a/dart/runtime/bin/secure_socket_patch.dart
+++ b/dart/runtime/bin/secure_socket_patch.dart
@@ -42,6 +42,13 @@ class _SecureSocket extends _Socket implements SecureSocket {
}
return _raw.peerCertificate;
}
+
+ String get selectedProtocol {
+ if (_raw == null) {
+ throw new StateError("selectedProtocol called on destroyed SecureSocket");
+ }
+ return _raw.selectedProtocol;
+ }
}
@@ -78,7 +85,8 @@ class _SecureFilterImpl
String certificateName,
bool requestClientCertificate,
bool requireClientCertificate,
- bool sendClientCertificate) native "SecureSocket_Connect";
+ bool sendClientCertificate,
+ Uint8List protocols) native "SecureSocket_Connect";
void destroy() {
buffers = null;
@@ -89,10 +97,13 @@ class _SecureFilterImpl
void handshake() native "SecureSocket_Handshake";
+ String selectedProtocol() native "SecureSocket_GetSelectedProtocol";
+
void renegotiate(bool useSessionCache,
bool requestClientCertificate,
bool requireClientCertificate)
native "SecureSocket_Renegotiate";
+
void init() native "SecureSocket_Init";
X509Certificate get peerCertificate native "SecureSocket_PeerCertificate";
« no previous file with comments | « dart/runtime/bin/secure_socket.cc ('k') | dart/runtime/bin/secure_socket_unsupported.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698