Skip to content

Commit 6a62754

Browse files
committed
switch crate webrtc-dtls to dtls
1 parent f259379 commit 6a62754

File tree

13 files changed

+448
-315
lines changed

13 files changed

+448
-315
lines changed

Cargo.lock

Lines changed: 400 additions & 276 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ to use webrtc-rs to build media and data channel applications.
8989
<img src="https://raw.githubusercontent.com/webrtc-rs/webrtc/master/doc/check.png">SRTP<a href="https://crates.io/crates/webrtc-srtp"><img src="https://img.shields.io/crates/v/webrtc-srtp.svg"></a>
9090
<img src="https://raw.githubusercontent.com/webrtc-rs/webrtc/master/doc/check.png">SCTP<a href="https://crates.io/crates/webrtc-sctp"><img src="https://img.shields.io/crates/v/webrtc-sctp.svg"></a>
9191
<br>
92-
<img src="https://raw.githubusercontent.com/webrtc-rs/webrtc/master/doc/check.png">DTLS<a href="https://crates.io/crates/webrtc-dtls"><img src="https://img.shields.io/crates/v/webrtc-dtls.svg"></a>
92+
<img src="https://raw.githubusercontent.com/webrtc-rs/webrtc/master/doc/check.png">DTLS<a href="https://crates.io/crates/dtls"><img src="https://img.shields.io/crates/v/dtls.svg"></a>
9393
<br>
9494
<img src="https://raw.githubusercontent.com/webrtc-rs/webrtc/master/doc/check.png">mDNS<a href="https://crates.io/crates/webrtc-mdns"><img src="https://img.shields.io/crates/v/webrtc-mdns.svg"></a>
9595
<img src="https://raw.githubusercontent.com/webrtc-rs/webrtc/master/doc/check.png">STUN<a href="https://crates.io/crates/stun"><img src="https://img.shields.io/crates/v/stun.svg"></a>

dtls/CHANGELOG.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
1-
# webrtc-dtls changelog
1+
# dtls changelog
22

33
## Unreleased
44

55
## v0.7.1
66

7-
* Added support for insecure/deprecated signature verification algorithms [#342](https://github.com/webrtc-rs/webrtc/pull/342) by [@chuigda](https://github.com/chuigda).
7+
* Added support for insecure/deprecated signature verification
8+
algorithms [#342](https://github.com/webrtc-rs/webrtc/pull/342) by [@chuigda](https://github.com/chuigda).
89

910
## v0.7.0
1011

1112
* Increased minimum support rust version to `1.60.0`.
12-
* Add `RTCCertificate::from_pem` and `RTCCertificate::serialize_pem` (only work with `pem` feature enabled) [#333](https://github.com/webrtc-rs/webrtc/pull/333)
13+
* Add `RTCCertificate::from_pem` and `RTCCertificate::serialize_pem` (only work with `pem` feature
14+
enabled) [#333](https://github.com/webrtc-rs/webrtc/pull/333)
1315

1416
### Breaking
1517

16-
* Increased required `webrtc-util` version to `0.7.0`, with this change some methods in `DTLSConn` that implement `webrtc_util::Conn` have changed from async to sync.
18+
* Increased required `webrtc-util` version to `0.7.0`, with this change some methods in `DTLSConn` that implement
19+
`webrtc_util::Conn` have changed from async to sync.
1720

1821
## v0.6.0
1922

20-
* [#254 [DTLS] Add NamedCurve::P384](https://github.com/webrtc-rs/webrtc/pull/254) contributed by [neonphog](https://github.com/neonphog)
21-
* Increased min version of `log` dependency to `0.4.16`. [#250 Fix log at ^0.4.16 to make tests compile](https://github.com/webrtc-rs/webrtc/pull/250) by [@k0nserv](https://github.com/k0nserv).
22-
* Increased serde's minimum version to 1.0.110 [#243 Fixes for cargo minimal-versions](https://github.com/webrtc-rs/webrtc/pull/243) contributed by [algesten](https://github.com/algesten)
23+
* [#254 [DTLS] Add NamedCurve::P384](https://github.com/webrtc-rs/webrtc/pull/254) contributed
24+
by [neonphog](https://github.com/neonphog)
25+
* Increased min version of `log` dependency to
26+
`0.4.16`. [#250 Fix log at ^0.4.16 to make tests compile](https://github.com/webrtc-rs/webrtc/pull/250)
27+
by [@k0nserv](https://github.com/k0nserv).
28+
* Increased serde's minimum version to
29+
1.0.110 [#243 Fixes for cargo minimal-versions](https://github.com/webrtc-rs/webrtc/pull/243) contributed
30+
by [algesten](https://github.com/algesten)
2331

2432
## Prior to 0.6.0
2533

26-
Before 0.6.0 there was no changelog, previous changes are sometimes, but not always, available in the [GitHub Releases](https://github.com/webrtc-rs/dtls/releases).
34+
Before 0.6.0 there was no changelog, previous changes are sometimes, but not always, available in
35+
the [GitHub Releases](https://github.com/webrtc-rs/dtls/releases).

dtls/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "webrtc-dtls"
2+
name = "dtls"
33
version = "0.12.0"
44
authors = ["Rain Liu <[email protected]>"]
55
edition = "2021"
66
description = "A pure Rust implementation of DTLS"
77
license = "MIT OR Apache-2.0"
8-
documentation = "https://docs.rs/webrtc-dtls"
8+
documentation = "https://docs.rs/dtls"
99
homepage = "https://webrtc.rs"
1010
repository = "https://github.com/webrtc-rs/webrtc/tree/master/dtls"
1111

dtls/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
<a href="https://deps.rs/repo/github/webrtc-rs/dtls">
1313
<img src="https://deps.rs/repo/github/webrtc-rs/dtls/status.svg">
1414
</a>
15-
<a href="https://crates.io/crates/webrtc-dtls">
16-
<img src="https://img.shields.io/crates/v/webrtc-dtls.svg">
15+
<a href="https://crates.io/crates/dtls">
16+
<img src="https://img.shields.io/crates/v/dtls.svg">
1717
</a>
18-
<a href="https://docs.rs/webrtc-dtls">
19-
<img src="https://docs.rs/webrtc-dtls/badge.svg">
18+
<a href="https://docs.rs/dtls">
19+
<img src="https://docs.rs/dtls/badge.svg">
2020
</a>
2121
<a href="https://doc.rust-lang.org/1.6.0/complement-project-faq.html#why-dual-mitasl2-license">
2222
<img src="https://img.shields.io/badge/license-MIT%2FApache--2.0-blue" alt="License: MIT/Apache 2.0">

dtls/examples/dial/psk/dial_psk.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ use std::io::Write;
22
use std::sync::Arc;
33

44
use clap::{App, AppSettings, Arg};
5+
use dtls::cipher_suite::CipherSuiteId;
6+
use dtls::config::*;
7+
use dtls::conn::DTLSConn;
8+
use dtls::Error;
59
use tokio::net::UdpSocket;
610
use util::Conn;
7-
use webrtc_dtls::cipher_suite::CipherSuiteId;
8-
use webrtc_dtls::config::*;
9-
use webrtc_dtls::conn::DTLSConn;
10-
use webrtc_dtls::Error;
1111

1212
// cargo run --example dial_psk -- --server 127.0.0.1:4444
1313

dtls/examples/dial/selfsign/dial_selfsign.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ use std::io::Write;
22
use std::sync::Arc;
33

44
use clap::{App, AppSettings, Arg};
5+
use dtls::config::*;
6+
use dtls::conn::DTLSConn;
7+
use dtls::crypto::Certificate;
8+
use dtls::Error;
59
use tokio::net::UdpSocket;
610
use util::Conn;
7-
use webrtc_dtls::config::*;
8-
use webrtc_dtls::conn::DTLSConn;
9-
use webrtc_dtls::crypto::Certificate;
10-
use webrtc_dtls::Error;
1111

1212
// cargo run --example dial_selfsign -- --server 127.0.0.1:4444
1313

dtls/examples/dial/verify/dial_verify.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ use std::io::Write;
22
use std::sync::Arc;
33

44
use clap::{App, AppSettings, Arg};
5+
use dtls::config::*;
6+
use dtls::conn::DTLSConn;
7+
use dtls::Error;
58
use hub::utilities::load_certificate;
69
use tokio::net::UdpSocket;
710
use util::Conn;
8-
use webrtc_dtls::config::*;
9-
use webrtc_dtls::conn::DTLSConn;
10-
use webrtc_dtls::Error;
1111

1212
// cargo run --example dial_verify -- --server 127.0.0.1:4444
1313

dtls/examples/hub/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
util = { version = "0.11.0", path = "../../../util", package = "webrtc-util", default-features = false, features = [
88
"conn"
99
] }
10-
dtls = { version = "0.12.0", package = "webrtc-dtls", path = "../../" }
10+
dtls = { version = "0.12.0", path = "../../" }
1111

1212
tokio = { version = "1.32.0", features = ["full"] }
1313
rcgen = { version = "0.13", features = ["pem", "x509-parser"] }

dtls/examples/listen/psk/listen_psk.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ use std::io::Write;
22
use std::sync::Arc;
33

44
use clap::{App, AppSettings, Arg};
5+
use dtls::cipher_suite::CipherSuiteId;
6+
use dtls::config::{Config, ExtendedMasterSecretType};
7+
use dtls::listener::listen;
8+
use dtls::Error;
59
use util::conn::*;
6-
use webrtc_dtls::cipher_suite::CipherSuiteId;
7-
use webrtc_dtls::config::{Config, ExtendedMasterSecretType};
8-
use webrtc_dtls::listener::listen;
9-
use webrtc_dtls::Error;
1010

1111
// cargo run --example listen_psk -- --host 127.0.0.1:4444
1212

0 commit comments

Comments
 (0)