diff --git a/server/crates/arbiter-server/src/peers/client/auth.rs b/server/crates/arbiter-server/src/peers/client/auth.rs index 3742f97..f488161 100644 --- a/server/crates/arbiter-server/src/peers/client/auth.rs +++ b/server/crates/arbiter-server/src/peers/client/auth.rs @@ -298,7 +298,7 @@ where let signature = expect_message(transport, |req: Inbound| match req { Inbound::AuthChallengeSolution { signature } => Some(signature), - _ => None, + Inbound::AuthChallengeRequest { .. } => None, }) .await .map_err(|e| { diff --git a/server/crates/arbiter-server/src/peers/operator/auth/state.rs b/server/crates/arbiter-server/src/peers/operator/auth/state.rs index 9862612..a7c0ae7 100644 --- a/server/crates/arbiter-server/src/peers/operator/auth/state.rs +++ b/server/crates/arbiter-server/src/peers/operator/auth/state.rs @@ -14,19 +14,19 @@ use diesel::{ExpressionMethods as _, OptionalExtension as _, QueryDsl}; use diesel_async::RunQueryDsl; use tracing::error; -pub(super) struct ChallengeRequest { - pub(super) pubkey: authn::PublicKey, - pub(super) bootstrap_token: Option, +pub(crate) struct ChallengeRequest { + pub(crate) pubkey: authn::PublicKey, + pub(crate) bootstrap_token: Option, } -pub(super) struct ChallengeContext { - pub(super) challenge: AuthChallenge, - pub(super) pubkey: authn::PublicKey, - pub(super) bootstrap_token: Option, +pub struct ChallengeContext { + pub challenge: AuthChallenge, + pub pubkey: authn::PublicKey, + pub bootstrap_token: Option, } -pub(super) struct ChallengeSolution { - pub(super) solution: Vec, +pub(crate) struct ChallengeSolution { + pub(crate) solution: Vec, } smlang::statemachine!( @@ -127,8 +127,6 @@ where }) } - #[allow(missing_docs)] - #[allow(clippy::unused_unit)] async fn verify_solution( &mut self, ChallengeContext {