feat(client): TLS 1.3 control connection with SPKI pinning and LNEx v3
Replace the custom X25519/HKDF/ChaCha20 TCP layer with rustls (TLS 1.3 only, ALPN vnox-lnex/3, no plaintext or fallback). Add a trust store (pin, trust on first use, public CA), block changed fingerprints and identities, bind the Ed25519 auth signature to the TLS exporter, add RU/EN trust dialog and update the interop test and e2e voice tool.
This commit is contained in:
parent
5f594046a6
commit
29883a3187
31 changed files with 2085 additions and 567 deletions
|
|
@ -382,6 +382,30 @@ pub fn sync_connect(window: &MainWindow, state: &UiState) {
|
|||
ConnState::Connecting | ConnState::Reconnecting { .. }
|
||||
));
|
||||
window.set_auto_reconnect(state.auto_reconnect);
|
||||
{
|
||||
use crate::ui::state::TrustPromptKind;
|
||||
let (kind, address, received, expected) = match &state.trust_prompt {
|
||||
None => (0, "", "", ""),
|
||||
Some(prompt) => (
|
||||
match prompt.kind {
|
||||
TrustPromptKind::FirstUse => 1,
|
||||
TrustPromptKind::FingerprintChanged => 2,
|
||||
TrustPromptKind::IdentityChanged => 3,
|
||||
},
|
||||
prompt.address.as_str(),
|
||||
prompt.received.as_str(),
|
||||
prompt.expected.as_str(),
|
||||
),
|
||||
};
|
||||
window.set_trust_kind(kind);
|
||||
window.set_trust_address(SharedString::from(address));
|
||||
window.set_trust_received(SharedString::from(
|
||||
vnox_client::net::trust::display_fingerprint(received),
|
||||
));
|
||||
window.set_trust_expected(SharedString::from(
|
||||
vnox_client::net::trust::display_fingerprint(expected),
|
||||
));
|
||||
}
|
||||
if let ConnState::Connected { ref node_name, .. } = state.conn {
|
||||
window.set_node_name(SharedString::from(node_name.as_str()));
|
||||
} else if matches!(state.conn, ConnState::Disconnected) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue