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 @deprecated |
| 135 static bool get alpnSupported => true; |
132 } | 136 } |
133 | 137 |
134 class _SecurityContext extends NativeFieldWrapperClass1 | 138 class _SecurityContext extends NativeFieldWrapperClass1 |
135 implements SecurityContext { | 139 implements SecurityContext { |
136 _SecurityContext() { | 140 _SecurityContext() { |
137 _createNativeContext(); | 141 _createNativeContext(); |
138 } | 142 } |
139 | 143 |
140 void _createNativeContext() native "SecurityContext_Allocate"; | 144 void _createNativeContext() native "SecurityContext_Allocate"; |
141 | 145 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 isUtc: true); | 206 isUtc: true); |
203 } | 207 } |
204 | 208 |
205 DateTime get endValidity { | 209 DateTime get endValidity { |
206 return new DateTime.fromMillisecondsSinceEpoch(_endValidity(), isUtc: true); | 210 return new DateTime.fromMillisecondsSinceEpoch(_endValidity(), isUtc: true); |
207 } | 211 } |
208 | 212 |
209 int _startValidity() native "X509_StartValidity"; | 213 int _startValidity() native "X509_StartValidity"; |
210 int _endValidity() native "X509_EndValidity"; | 214 int _endValidity() native "X509_EndValidity"; |
211 } | 215 } |
OLD | NEW |