Vendor dimpl 0.7.4 unmodified and patch it in from third_party

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
This commit is contained in:
Claude committed 2026-09-26 23:27:21 +00:00
1 parent 3aba9a165d
commit ce7c833aa8
152 files changed
+56138 -5

No files matched your search

+247
View File
@@ -0,0 +1,247 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2024"
rust-version = "1.85.0"
name = "dimpl"
version = "0.7.4"
authors = ["Martin Algesten <martin@algesten.se>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DTLS 1.2/1.3 implementation (Sans‑IO, Sync)"
readme = "README.md"
keywords = [
"dtls",
"tls",
"webrtc",
"psk",
]
categories = [
"network-programming",
"cryptography",
"security",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/algesten/dimpl"
[features]
_crypto-common = [
"dep:der",
"dep:pkcs8",
"dep:sec1",
"dep:signature",
"dep:spki",
"dep:x509-cert",
]
aws-lc-rs = [
"dep:aws-lc-rs",
"dep:ccm",
"dep:aes",
"_crypto-common",
]
default = [
"aws-lc-rs",
"rcgen",
]
rcgen = [
"dep:rcgen",
"aws-lc-rs",
]
rust-crypto = [
"dep:aes-gcm",
"dep:chacha20poly1305",
"dep:chacha20",
"dep:p256",
"dep:p384",
"dep:x25519-dalek",
"dep:sha2",
"dep:hmac",
"dep:hkdf",
"dep:ecdsa",
"dep:generic-array",
"dep:rand_core",
"dep:ccm",
"dep:aes",
"_crypto-common",
]
[lib]
name = "dimpl"
path = "src/lib.rs"
[[test]]
name = "auto"
path = "tests/auto/main.rs"
[[test]]
name = "dtls12"
path = "tests/dtls12/main.rs"
[[test]]
name = "dtls13"
path = "tests/dtls13/main.rs"
[[test]]
name = "dtls13_cookie"
path = "tests/dtls13_cookie.rs"
[dependencies.aes]
version = "0.8"
optional = true
[dependencies.aes-gcm]
version = "0.10"
optional = true
[dependencies.arrayvec]
version = "0.7.6"
[dependencies.aws-lc-rs]
version = "^1.16"
features = [
"aws-lc-sys",
"prebuilt-nasm",
]
optional = true
default-features = false
[dependencies.ccm]
version = "0.5"
optional = true
default-features = false
[dependencies.chacha20]
version = "0.9"
optional = true
[dependencies.chacha20poly1305]
version = "0.10"
optional = true
[dependencies.der]
version = "0.7"
optional = true
[dependencies.ecdsa]
version = "0.16"
features = [
"signing",
"verifying",
]
optional = true
[dependencies.generic-array]
version = "0.14"
optional = true
[dependencies.hkdf]
version = "0.12"
optional = true
[dependencies.hmac]
version = "0.12"
optional = true
[dependencies.log]
version = "0.4.29"
[dependencies.nom]
version = "8"
features = ["std"]
default-features = false
[dependencies.once_cell]
version = "1.21.3"
[dependencies.p256]
version = "0.13"
features = ["ecdh"]
optional = true
[dependencies.p384]
version = "0.13"
features = ["ecdh"]
optional = true
[dependencies.pkcs8]
version = "0.10"
features = ["pem"]
optional = true
[dependencies.rand]
version = "0.9"
[dependencies.rand_core]
version = "0.6"
optional = true
[dependencies.rcgen]
version = "0.14.7"
features = ["aws_lc_rs"]
optional = true
default-features = false
[dependencies.sec1]
version = "0.7"
optional = true
[dependencies.sha2]
version = "0.10"
optional = true
[dependencies.signature]
version = "2.2"
optional = true
[dependencies.spki]
version = "0.7"
optional = true
[dependencies.subtle]
version = "2.6"
[dependencies.time]
version = "0.3"
features = ["formatting"]
[dependencies.x25519-dalek]
version = "2"
features = ["static_secrets"]
optional = true
[dependencies.x509-cert]
version = "0.2"
optional = true
default-features = false
[dev-dependencies.bytes]
version = "1"
[dev-dependencies.env_logger]
version = "0.11.9"
[dev-dependencies.libc]
version = "0.2"
[dev-dependencies.openssl]
version = "0.10.75"
features = ["vendored"]
[dev-dependencies.x509-parser]
version = "0.18"
[target."cfg(not(windows))".dev-dependencies.wolfssl]
version = "7.2.0"