サンプル
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
ケース
- ゴール
- 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
- パッケージ
- rustls 0.23.43
- 環境
- rust
- 作成日
- 2026-08-16T08:20:32Z
コントラクト
- 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
ファイル
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9