str0m's DTLS stack (dimpl) hard-codes the SRTP profile a DTLS server picks (AES-256-GCM first), with no way to configure it. Official TeamSpeak 6 clients use AES_CM_128_HMAC_SHA1_80, so we need to patch dimpl. This commit only vendors the crate as published and routes crates.io's dimpl to it; the change follows separately so it can be reviewed and dropped on its own. third_party is excluded from the workspace so dimpl's dev-dependencies and tests stay out of our builds, and own-crates.sh skips it like crates/proto. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
39 lines
1.2 KiB
Rust
39 lines
1.2 KiB
Rust
//! DTLS 1.2 protocol implementation.
|
|
//!
|
|
|
|
// This is the full DTLS 1.2 handshake flow
|
|
//
|
|
// Client Server
|
|
//
|
|
// 1 ClientHello -------->
|
|
//
|
|
// 2 <-------- HelloVerifyRequest
|
|
// (contains cookie)
|
|
//
|
|
// 3 ClientHello -------->
|
|
// (with cookie)
|
|
// 4 ServerHello
|
|
// Certificate*
|
|
// ServerKeyExchange*
|
|
// CertificateRequest*
|
|
// <-------- ServerHelloDone
|
|
// 5 Certificate*
|
|
// ClientKeyExchange
|
|
// CertificateVerify*
|
|
// [ChangeCipherSpec]
|
|
// Finished -------->
|
|
// 6 [ChangeCipherSpec]
|
|
// <-------- Finished
|
|
// Application Data <-------> Application Data
|
|
|
|
mod client;
|
|
mod context;
|
|
mod engine;
|
|
pub mod incoming;
|
|
pub mod message;
|
|
mod queue;
|
|
mod server;
|
|
|
|
pub use client::Client;
|
|
pub use server::Server;
|