| 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 | 5 @patch |
| 6 class SecureSocket { | 6 class SecureSocket { |
| 7 @patch | 7 @patch |
| 8 factory SecureSocket._(RawSecureSocket rawSocket) => | 8 factory SecureSocket._(RawSecureSocket rawSocket) => |
| 9 new _SecureSocket(rawSocket); | 9 new _SecureSocket(rawSocket); |
| 10 } | 10 } |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 class SecurityContext { | 122 class SecurityContext { |
| 123 @patch | 123 @patch |
| 124 factory SecurityContext() { | 124 factory SecurityContext() { |
| 125 return new _SecurityContext(); | 125 return new _SecurityContext(); |
| 126 } | 126 } |
| 127 | 127 |
| 128 @patch | 128 @patch |
| 129 static SecurityContext get defaultContext { | 129 static SecurityContext get defaultContext { |
| 130 return _SecurityContext.defaultContext; | 130 return _SecurityContext.defaultContext; |
| 131 } | 131 } |
| 132 |
| 133 @patch |
| 134 static bool get alpnSupported => true; |
| 132 } | 135 } |
| 133 | 136 |
| 134 class _SecurityContext extends NativeFieldWrapperClass1 | 137 class _SecurityContext extends NativeFieldWrapperClass1 |
| 135 implements SecurityContext { | 138 implements SecurityContext { |
| 136 _SecurityContext() { | 139 _SecurityContext() { |
| 137 _createNativeContext(); | 140 _createNativeContext(); |
| 138 } | 141 } |
| 139 | 142 |
| 140 void _createNativeContext() native "SecurityContext_Allocate"; | 143 void _createNativeContext() native "SecurityContext_Allocate"; |
| 141 | 144 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 isUtc: true); | 205 isUtc: true); |
| 203 } | 206 } |
| 204 | 207 |
| 205 DateTime get endValidity { | 208 DateTime get endValidity { |
| 206 return new DateTime.fromMillisecondsSinceEpoch(_endValidity(), isUtc: true); | 209 return new DateTime.fromMillisecondsSinceEpoch(_endValidity(), isUtc: true); |
| 207 } | 210 } |
| 208 | 211 |
| 209 int _startValidity() native "X509_StartValidity"; | 212 int _startValidity() native "X509_StartValidity"; |
| 210 int _endValidity() native "X509_EndValidity"; | 213 int _endValidity() native "X509_EndValidity"; |
| 211 } | 214 } |
| OLD | NEW |