Commit 71806ae
test(tls): guard the rustls CryptoProvider install at the root
The FTPS-hang class of bug (c15ee3f) was a binary doing TLS without a rustls
CryptoProvider installed: aws-lc-rs and ring are both in the tree (ours plus
noq-proto), so rustls cannot auto-select one and panics on the first handshake,
which stranded every FTPS connect in an infinite spinner. The GUI binary had
simply forgotten the install call the CLI already had.
Centralise the install in ftp_client_gui_lib::install_crypto_provider() and route
both binaries (GUI run(), aeroftp-cli main) through it, so there is ONE code path
instead of two copies that can drift. run() now debug_asserts the provider is
installed. A unit test asserts install_crypto_provider() leaves a provider
globally visible, which is the cheap CI guard that would have caught c15ee3f
before it reached the desktop. The other binaries (aeroftp-dispatch,
aerorsync_serve, seed_test_profiles) do no TLS handshake, so they need no install.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e25af60 commit 71806ae
2 files changed
Lines changed: 49 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55201 | 55201 | | |
55202 | 55202 | | |
55203 | 55203 | | |
55204 | | - | |
55205 | | - | |
55206 | | - | |
55207 | | - | |
55208 | | - | |
55209 | | - | |
| 55204 | + | |
| 55205 | + | |
| 55206 | + | |
| 55207 | + | |
55210 | 55208 | | |
55211 | 55209 | | |
55212 | 55210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16485 | 16485 | | |
16486 | 16486 | | |
16487 | 16487 | | |
| 16488 | + | |
| 16489 | + | |
| 16490 | + | |
| 16491 | + | |
| 16492 | + | |
| 16493 | + | |
| 16494 | + | |
| 16495 | + | |
| 16496 | + | |
| 16497 | + | |
| 16498 | + | |
| 16499 | + | |
| 16500 | + | |
| 16501 | + | |
| 16502 | + | |
| 16503 | + | |
| 16504 | + | |
| 16505 | + | |
| 16506 | + | |
| 16507 | + | |
| 16508 | + | |
| 16509 | + | |
| 16510 | + | |
| 16511 | + | |
| 16512 | + | |
| 16513 | + | |
| 16514 | + | |
| 16515 | + | |
| 16516 | + | |
| 16517 | + | |
| 16518 | + | |
| 16519 | + | |
| 16520 | + | |
| 16521 | + | |
| 16522 | + | |
| 16523 | + | |
| 16524 | + | |
16488 | 16525 | | |
16489 | 16526 | | |
16490 | 16527 | | |
16491 | 16528 | | |
16492 | | - | |
16493 | | - | |
16494 | | - | |
16495 | | - | |
16496 | | - | |
16497 | | - | |
16498 | | - | |
| 16529 | + | |
| 16530 | + | |
| 16531 | + | |
| 16532 | + | |
| 16533 | + | |
| 16534 | + | |
| 16535 | + | |
| 16536 | + | |
16499 | 16537 | | |
16500 | 16538 | | |
16501 | 16539 | | |
| |||
0 commit comments