mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
Handle vc-pubkey on Bob's side
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
@@ -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 => {
|
||||||
/*==========================================================
|
/*==========================================================
|
||||||
|
|||||||
@@ -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> {
|
||||||
|
|||||||
Reference in New Issue
Block a user