chore(deps): webrtc-util 0.17・rcgen 0.14・x509-parser 0.18(webrtc-dtls → dtls 0.17) - #109
Merged
Merged
Conversation
…dtls を dtls 0.17 に置き換える - webrtc-dtls 0.12(更新が止まった)を後継の dtls 0.17.2 に置き換え、 webrtc-util を 0.17.2 に上げた - DTLS の秘密鍵は PKCS#8 の DER から ring で直接作る(tlsconf::dtls_private_key)。 rcgen の型を dtls に渡さないので、dtls が内部で使う rcgen 0.13 と型を合わせる必要がない。 鍵と証明書の対応の確認も、証明書の subjectPublicKey と ring の公開鍵の比較にした - src は rcgen を使わなくなったので、rcgen 0.14.10 は dev-dependencies(テスト用の PKI)へ。 rcgen 0.14 の Issuer に合わせてテストの PKI を直した - x509-parser 0.18.1 - 依存が増えて型推論できなくなった SocketAddr の比較 2 か所に型を明記 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UyWFKfK7QhjFLgRBF1V9Bu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#106 で古いバージョンに残した 3 つを、Renovate が示したバージョンに上げました。そのために、DTLS のライブラリを後継のクレートに置き換え、rcgen の型を DTLS のライブラリに渡さない作りに直しています。
バージョン
直したところ
src/tlsconf.rsdtls_private_key)。ECDSA P-256・Ed25519・RSA に対応するのは今までと同じKeyPairを DTLS のライブラリに渡していた。dtls 0.17 は今も rcgen 0.13 を使っているので、渡すのをやめて型の食い違いをなくしたsrc/udp.rs・テスト:webrtc_dtls→dtlstests/common/pki.rs)は rcgen 0.14 のIssuerに合わせた(x509-parserの機能を有効にしてIssuer::from_ca_cert_der)src/resolve.rs・src/source.rs:依存が増えて比較の型推論ができなくなった 2 か所(テスト)にSocketAddrを明記残る重複(dtls 0.17.2 の中だけ)
確認
cargo clippy --all-targets:警告なしRPROXY_TEST_REQUIRE_PYTHON=1 cargo test:237 件すべて成功(DTLS の終端・転送先への DTLS・クライアント認証・中間 CA の tests/dtls.rs・tests/chain.rs を含む)。DB 復元と、MediaMTX / coturn との相互接続は CI で確かめるx86_64-unknown-linux-muslのリリースビルドが通り、--versionが動く(手元で zig を使用)。arm64 / armhf はタグのリリースでのみ確かめられる🤖 Generated with Claude Code
https://claude.ai/code/session_01UyWFKfK7QhjFLgRBF1V9Bu