Index: sdk/lib/io/secure_socket.dart |
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart |
index b966c61bb676e30fba59043ffbe18e96e8449573..903ecf8b0f6132200f3559dd8d51ff473c30a45f 100644 |
--- a/sdk/lib/io/secure_socket.dart |
+++ b/sdk/lib/io/secure_socket.dart |
@@ -246,13 +246,23 @@ abstract class RawSecureSocket implements RawSocket { |
{bool sendClientCertificate: false, |
String certificateName, |
bool onBadCertificate(X509Certificate certificate)}) { |
- return _RawSecureSocket.connect( |
+ _RawSecureSocket._verifyFields( |
host, |
port, |
certificateName, |
- is_server: false, |
- sendClientCertificate: sendClientCertificate, |
- onBadCertificate: onBadCertificate); |
+ false, |
+ false, |
+ false, |
+ sendClientCertificate, |
+ onBadCertificate); |
+ return RawSocket.connect(host, port) |
+ .then((socket) { |
+ return secure(socket, |
+ host: host, |
+ sendClientCertificate: sendClientCertificate, |
+ certificateName: certificateName, |
+ onBadCertificate: onBadCertificate); |
+ }); |
} |
/** |