| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 patch class SecureSocket { | 5 patch class SecureSocket { |
| 6 /* patch */ factory SecureSocket._(RawSecureSocket rawSocket) => | 6 /* patch */ factory SecureSocket._(RawSecureSocket rawSocket) => |
| 7 new _SecureSocket(rawSocket); | 7 new _SecureSocket(rawSocket); |
| 8 } | 8 } |
| 9 | 9 |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 ENCRYPTED_SIZE : | 74 ENCRYPTED_SIZE : |
| 75 SIZE); | 75 SIZE); |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 | 78 |
| 79 void connect(String hostName, | 79 void connect(String hostName, |
| 80 SecurityContext context, | 80 SecurityContext context, |
| 81 bool is_server, | 81 bool is_server, |
| 82 bool requestClientCertificate, | 82 bool requestClientCertificate, |
| 83 bool requireClientCertificate, | 83 bool requireClientCertificate, |
| 84 bool sendClientCertificate, | |
| 85 Uint8List protocols) native "SecureSocket_Connect"; | 84 Uint8List protocols) native "SecureSocket_Connect"; |
| 86 | 85 |
| 87 void destroy() { | 86 void destroy() { |
| 88 buffers = null; | 87 buffers = null; |
| 89 _destroy(); | 88 _destroy(); |
| 90 } | 89 } |
| 91 | 90 |
| 92 void _destroy() native "SecureSocket_Destroy"; | 91 void _destroy() native "SecureSocket_Destroy"; |
| 93 | 92 |
| 94 void handshake() native "SecureSocket_Handshake"; | 93 void handshake() native "SecureSocket_Handshake"; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 return new DateTime.fromMillisecondsSinceEpoch(_startValidity(), | 172 return new DateTime.fromMillisecondsSinceEpoch(_startValidity(), |
| 174 isUtc: true); | 173 isUtc: true); |
| 175 } | 174 } |
| 176 DateTime get endValidity { | 175 DateTime get endValidity { |
| 177 return new DateTime.fromMillisecondsSinceEpoch(_endValidity(), | 176 return new DateTime.fromMillisecondsSinceEpoch(_endValidity(), |
| 178 isUtc: true); | 177 isUtc: true); |
| 179 } | 178 } |
| 180 int _startValidity() native "X509_StartValidity"; | 179 int _startValidity() native "X509_StartValidity"; |
| 181 int _endValidity() native "X509_EndValidity"; | 180 int _endValidity() native "X509_EndValidity"; |
| 182 } | 181 } |
| OLD | NEW |