File tree 4 files changed +18
-11
lines changed
4 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
3
- [ Changelog] ( #changelog )
4
+ - [ 0.2.2] ( #022 )
4
5
- [ 0.2.1] ( #021 )
5
6
- [ 0.2.0] ( #020 )
6
7
- [ 0.1.4] ( #014 )
11
12
12
13
---
13
14
15
+ ## 0.2.2
16
+
17
+ Released on 18/10/2024
18
+
19
+ - Fix rustls 0.23
20
+
14
21
## 0.2.1
15
22
16
23
Released on 07/10/2024
Original file line number Diff line number Diff line change @@ -10,13 +10,14 @@ license = "MIT"
10
10
name = " remotefs-ftp"
11
11
readme = " README.md"
12
12
repository = " https://github.com/remotefs-rs/remotefs-rs-ftp"
13
- version = " 0.2.1 "
13
+ version = " 0.2.2 "
14
14
15
15
[dependencies ]
16
16
log = " ^0.4"
17
17
remotefs = " ^0.3"
18
18
suppaftp = " ^6"
19
- webpki-roots = { version = " ^0.22" , optional = true }
19
+ rustls-pki-types = { version = " 1" , optional = true }
20
+ webpki-roots = { version = " 0.26" , optional = true }
20
21
21
22
[dev-dependencies ]
22
23
env_logger = " ^0.11"
@@ -29,7 +30,7 @@ tempfile = "^3"
29
30
default = [" find" ]
30
31
# TLS
31
32
native-tls = [" suppaftp/native-tls" ]
32
- rustls = [" suppaftp/rustls" , " webpki-roots" ]
33
+ rustls = [" suppaftp/rustls" , " dep:rustls-pki-types " , " dep: webpki-roots" ]
33
34
secure = [" native-tls" ]
34
35
vendored = [" suppaftp/native-tls-vendored" ]
35
36
# misc
Original file line number Diff line number Diff line change 11
11
<p align =" center " >~ Remotefs FTP client ~</p >
12
12
13
13
<p align =" center " >Developed by <a href =" https://veeso.github.io/ " target =" _blank " >@veeso</a ></p >
14
- <p align =" center " >Current version: 0.2.0 (30/09 /2024)</p >
14
+ <p align =" center " >Current version: 0.2.2 (18/10 /2024)</p >
15
15
16
16
<p align =" center " >
17
17
<a href="https://opensource.org/licenses/MIT "
Original file line number Diff line number Diff line change @@ -216,16 +216,15 @@ impl FtpFs {
216
216
#[ cfg( feature = "rustls" ) ]
217
217
fn setup_tls_connector ( & self ) -> RemoteResult < TlsConnector > {
218
218
let mut root_store = suppaftp:: rustls:: RootCertStore :: empty ( ) ;
219
- root_store. add_trust_anchors ( webpki_roots:: TLS_SERVER_ROOTS . 0 . iter ( ) . map ( |ta| {
220
- suppaftp :: rustls :: OwnedTrustAnchor :: from_subject_spki_name_constraints (
221
- ta. subject ,
222
- ta. spki ,
223
- ta. name_constraints ,
224
- )
219
+ root_store. extend ( webpki_roots:: TLS_SERVER_ROOTS . iter ( ) . map ( |ta| {
220
+ rustls_pki_types :: TrustAnchor {
221
+ subject : ta. subject . clone ( ) ,
222
+ subject_public_key_info : ta. subject_public_key_info . clone ( ) ,
223
+ name_constraints : ta. name_constraints . clone ( ) ,
224
+ }
225
225
} ) ) ;
226
226
Ok ( std:: sync:: Arc :: new (
227
227
ClientConfig :: builder ( )
228
- . with_safe_defaults ( )
229
228
. with_root_certificates ( root_store)
230
229
. with_no_client_auth ( ) ,
231
230
)
You can’t perform that action at this time.
0 commit comments