File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 77- ` OKHttpClient ` supports client certificates.
88- Support ` package:web_socket ` 1.0.0.
99- Set ` minSdk=24 ` .
10+ - Add a missing call to ` TrustManagerFactory.init ` .
1011
1112## 0.1.0
1213
Original file line number Diff line number Diff line change @@ -260,9 +260,10 @@ class OkHttpClient extends BaseClient {
260260 if (! configuration.validateServerCertificates) {
261261 trustManagers[0 ] = _allAllTrustManager;
262262 } else {
263- final tms = bindings.TrustManagerFactory .getInstance (
264- bindings.TrustManagerFactory .getDefaultAlgorithm ())!
265- .getTrustManagers ()! ;
263+ final tmf = bindings.TrustManagerFactory .getInstance (
264+ bindings.TrustManagerFactory .getDefaultAlgorithm ())!
265+ ..init (null );
266+ final tms = tmf.getTrustManagers ()! ;
266267 if (tms.length != 1 ) {
267268 throw StateError ('unexpected XXX' );
268269 }
You can’t perform that action at this time.
0 commit comments