Handle vc-pubkey on Bob's side

This commit is contained in:
Hocuri
2026-01-21 15:38:50 +01:00
parent 4c00bc109f
commit d979938b44
3 changed files with 5 additions and 5 deletions

View File

@@ -2309,7 +2309,7 @@ pub(crate) async fn render_symm_encrypted_securejoin_message(
"Auto-Submitted", "Auto-Submitted",
mail_builder::headers::raw::Raw::new("auto-generated".to_string()).into(), mail_builder::headers::raw::Raw::new("auto-generated".to_string()).into(),
)); ));
} else if step != "vc-request" { } else if step != "vc-request-pubkey" {
headers.push(( headers.push((
"Auto-Submitted", "Auto-Submitted",
mail_builder::headers::raw::Raw::new("auto-replied".to_string()).into(), mail_builder::headers::raw::Raw::new("auto-replied".to_string()).into(),

View File

@@ -515,7 +515,7 @@ pub(crate) async fn handle_securejoin_handshake(
==== Bob - the joiner's side ===== ==== Bob - the joiner's side =====
==== Step 4 in "Setup verified contact" protocol ===== ==== Step 4 in "Setup verified contact" protocol =====
========================================================*/ ========================================================*/
bob::handle_auth_required(context, mime_message).await bob::handle_auth_required_or_pubkey(context, mime_message).await
} }
SecureJoinStep::RequestPubkey => { SecureJoinStep::RequestPubkey => {
/*======================================================== /*========================================================
@@ -562,7 +562,7 @@ pub(crate) async fn handle_securejoin_handshake(
==== Bob - the joiner's side ===== ==== Bob - the joiner's side =====
==== Alice sent us her pubkey (Securejoin v3) ===== ==== Alice sent us her pubkey (Securejoin v3) =====
========================================================*/ ========================================================*/
todo!("Hocuri Pubkey not implemented") bob::handle_auth_required_or_pubkey(context, mime_message).await
} }
SecureJoinStep::RequestWithAuth => { SecureJoinStep::RequestWithAuth => {
/*========================================================== /*==========================================================

View File

@@ -215,11 +215,11 @@ LIMIT 1
Ok(()) Ok(())
} }
/// Handles `vc-auth-required` and `vg-auth-required` handshake messages. /// Handles `vc-auth-required`, `vg-auth-required`, and `vc-pubkey` handshake messages.
/// ///
/// # Bob - the joiner's side /// # Bob - the joiner's side
/// ## Step 4 in the "Setup Contact protocol" /// ## Step 4 in the "Setup Contact protocol"
pub(super) async fn handle_auth_required( pub(super) async fn handle_auth_required_or_pubkey(
context: &Context, context: &Context,
message: &MimeMessage, message: &MimeMessage,
) -> Result<HandshakeMessage> { ) -> Result<HandshakeMessage> {