Exemple
Configure rustls 0.23 ClientConfig with scoped CryptoProvider, populate RootCertStore, parse ServerName rejecting ports and schemes, and verify in-memory ClientConnection handshake state machine
sha256:fff60de89bafdec671d0293d2d43ea9be8322563a5ed7399227d304ac778ad31
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Configure rustls 0.23 ClientConfig with scoped CryptoProvider, populate RootCertStore, parse ServerName rejecting ports and schemes, and verify in-memory ClientConnection handshake state machine HOW
- Paquets
- rustls 0.23.43
- Environnement
- rust
- Créé
- 2026-08-16T08:20:32Z
Contrat
- rustls::crypto::ring::default_provider().install_default() returns Err on subsequent registration calls
- rustls::ClientConfig::builder_with_provider avoids global default provider state and sets safe default protocol versions
- rustls::RootCertStore::empty() starts with 0 root certificates and populates via webpki_roots
- rustls_pki_types::ServerName::try_from rejects hostnames containing ports or URL schemes
- rustls_pki_types::ServerName::try_from parses IP literals into ServerName::IpAddress while DnsName::try_from strictly rejects IP addresses
- rustls::ClientConnection starts in handshaking state with wants_write true and wants_read false before emitting 0x16 ClientHello handshake record
Fichiers
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9