Error-message classifier improvement, driven by #109 test feedback.
surf5726's v5.24.31 test got past the handshake-timeout fix but hit a new failure that surfaced as:
RDP connect finalize failed: Error { context: "read frame by hint", kind: Custom, source: Some(Custom { kind: InvalidData, error: AlertReceived(InternalError) }) }
Windows RDP servers with NLA enabled have a characteristically unhelpful habit: when they reject the user's credentials during CredSSP, they don't send a clean CredSSP error PDU — they tear down the TLS session with a rude internal_error TLS alert (code 80). ironrdp surfaces this as a generic InvalidData error, which our classifier was labelling as the opaque "RDP connect finalize failed" text above.
Fix
The error classifier in rdp-kotlin/rust/src/lib.rs now detects these TLS-alert-during-CredSSP patterns:
AlertReceived(InternalError)AlertReceived(AccessDenied)AlertReceived(BadCertificate)
…and remaps them to:
Authentication failed: server rejected credentials (check username, password, and domain). <underlying details>
No protocol code path changed; this is purely a message-classification polish.
Context
After surf5726 paired this log with their Microsoft Remote Desktop app's logcat (which connected successfully to the same server with the same credentials), it became clear the real cause on their particular setup isn't credentials but ironrdp's CredSSP implementation not interoperating with Windows Server 2025 Datacenter. That's a bigger piece — the per-profile NLA toggle ships in v5.24.33, which lets affected users fall back to SSL-only security.
Build artifacts
Signed APKs for arm64 and x86_64 attached. arm64 is the one for phones and tablets.