Skip to content

Commit

Permalink
Merge pull request #12 from sile/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
sile authored Feb 23, 2024
2 parents e4d452c + 71ddbf8 commit f9deb11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ 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]
clap = { version = "3", features = ["derive"] }
clap = { version = "4", features = ["derive"] }
env_logger = "0.9"
fibers_global = "0.1.2"
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 f9deb11

Please sign in to comment.