Skip to content

Commit

Permalink
Update rustun and stun_codec to v0.5 and v0.3 respectively
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Feb 23, 2024
1 parent 1f018c6 commit 71ddbf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ fibers_transport = "0.1"
futures = "0.1"
log = "0.4"
rand = "0.8"
rustun = "0.4"
stun_codec = "0.2"
rustun = "0.5"
stun_codec = "0.3"
trackable = "1"

[dev-dependencies]
Expand Down
8 changes: 4 additions & 4 deletions src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ impl AuthParams {
{
let realm = track_assert_some!(self.realm.clone(), ErrorKind::Other);
let nonce = track_assert_some!(self.nonce.clone(), ErrorKind::Other);
message.as_mut().add_attribute(self.username.clone().into());
message.as_mut().add_attribute(realm.clone().into());
message.as_mut().add_attribute(nonce.into());
message.as_mut().add_attribute(self.username.clone());
message.as_mut().add_attribute(realm.clone());
message.as_mut().add_attribute(nonce);
let mi = track!(
rfc5389::attributes::MessageIntegrity::new_long_term_credential(
message.as_mut(),
Expand All @@ -79,7 +79,7 @@ impl AuthParams {
&self.password,
)
)?;
message.as_mut().add_attribute(mi.into());
message.as_mut().add_attribute(mi);
Ok(())
}

Expand Down

0 comments on commit 71ddbf8

Please sign in to comment.