docs(host): the P-256 identity comment still named ring's backend
ci / docs-site (pull_request) Successful in 1m25s
apple / swift (pull_request) Successful in 2m15s
apple / distribute (pull_request) Skipped
apple / screenshots (pull_request) Skipped
ci / bun-nix (pull_request) Successful in 2m33s
ci / web (pull_request) Successful in 3m26s
windows-client / client (arm64, --no-default-features, aarch64-pc-windows-msvc, C:\t-a64) (pull_request) Successful in 6m20s
android / android (pull_request) Successful in 7m34s
windows-client / client (x64, , x86_64-pc-windows-msvc, C:\t) (pull_request) Successful in 9m4s
ci / rust-arm64 (pull_request) Successful in 16m13s
nix / flake (pull_request) Successful in 16m36s
ci / rust (pull_request) Successful in 47m49s

#192 moved rcgen to aws-lc-rs and removed ring from the tree, but this comment
still explained the P-256 path in terms of "rcgen's ring backend". It also
cross-references gamestream::cert's note, which this branch already corrected —
so leaving it made the two contradict each other.

The substance is unchanged and still load-bearing: rcgen generates EC keys
directly, while RSA has to be generated by the `rsa` crate and handed to rcgen
to self-sign, because no rcgen backend will generate an RSA key.
This commit is contained in:
2026-08-13 14:34:43 +02:00
parent a4af1ee8bd
commit 4903c9d3b5
+3 -2
View File
@@ -113,8 +113,9 @@ pub fn ephemeral() -> Result<NativeIdentity> {
Ok(NativeIdentity { cert_pem, key_pem })
}
/// Generate the P-256 identity: ring CAN generate EC keys (unlike RSA — see `gamestream::cert`'s
/// note), so rcgen's ring backend does the whole thing. SANs cover the names a browser or a
/// Generate the P-256 identity: rcgen CAN generate EC keys, so it does the whole thing here —
/// unlike RSA, which no rcgen backend will generate (see `gamestream::cert`'s note, where the key
/// comes from the `rsa` crate and rcgen only self-signs it). SANs cover the names a browser or a
/// loopback poller actually dials; LAN IPs are deliberately absent (they change, and the native
/// clients pin the fingerprint rather than verify names).
fn generate() -> Result<(String, String)> {