diff --git a/src/mimefactory.rs b/src/mimefactory.rs index 2d9821e55..37224882e 100644 --- a/src/mimefactory.rs +++ b/src/mimefactory.rs @@ -1085,13 +1085,6 @@ impl<'a> MimeFactory<'a> { )); } - let fingerprint = msg.param.get(Param::Arg3).unwrap_or_default(); - if !fingerprint.is_empty() { - headers.protected.push(Header::new( - "Secure-Join-Fingerprint".into(), - fingerprint.into(), - )); - } if let Some(id) = msg.param.get(Param::Arg4) { headers .protected diff --git a/src/param.rs b/src/param.rs index 6465c4443..1d1d8d6b6 100644 --- a/src/param.rs +++ b/src/param.rs @@ -84,9 +84,6 @@ pub enum Param { /// For Messages Arg2 = b'F', - /// `Secure-Join-Fingerprint` header for `{vc,vg}-request-with-auth` messages. - Arg3 = b'G', - /// For Messages Arg4 = b'H', diff --git a/src/securejoin/bobstate.rs b/src/securejoin/bobstate.rs index 6f4915dc5..f6df0d449 100644 --- a/src/securejoin/bobstate.rs +++ b/src/securejoin/bobstate.rs @@ -18,7 +18,6 @@ use crate::contact::{Contact, Origin}; use crate::context::Context; use crate::events::EventType; use crate::headerdef::HeaderDef; -use crate::key::{load_self_public_key, DcKey}; use crate::message::{Message, Viewtype}; use crate::mimeparser::{MimeMessage, SystemMessage}; use crate::param::Param; @@ -374,10 +373,6 @@ async fn send_handshake_message( // Sends the Secure-Join-Auth header in mimefactory.rs. msg.param.set(Param::Arg2, invite.authcode()); msg.param.set_int(Param::GuaranteeE2ee, 1); - - // Sends our own fingerprint in the Secure-Join-Fingerprint header. - let bob_fp = load_self_public_key(context).await?.fingerprint(); - msg.param.set(Param::Arg3, bob_fp.hex()); } };