mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
refactor: remove Secure-Join-Fingerprint header
This commit is contained in:
@@ -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) {
|
if let Some(id) = msg.param.get(Param::Arg4) {
|
||||||
headers
|
headers
|
||||||
.protected
|
.protected
|
||||||
|
|||||||
@@ -84,9 +84,6 @@ pub enum Param {
|
|||||||
/// For Messages
|
/// For Messages
|
||||||
Arg2 = b'F',
|
Arg2 = b'F',
|
||||||
|
|
||||||
/// `Secure-Join-Fingerprint` header for `{vc,vg}-request-with-auth` messages.
|
|
||||||
Arg3 = b'G',
|
|
||||||
|
|
||||||
/// For Messages
|
/// For Messages
|
||||||
Arg4 = b'H',
|
Arg4 = b'H',
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ use crate::contact::{Contact, Origin};
|
|||||||
use crate::context::Context;
|
use crate::context::Context;
|
||||||
use crate::events::EventType;
|
use crate::events::EventType;
|
||||||
use crate::headerdef::HeaderDef;
|
use crate::headerdef::HeaderDef;
|
||||||
use crate::key::{load_self_public_key, DcKey};
|
|
||||||
use crate::message::{Message, Viewtype};
|
use crate::message::{Message, Viewtype};
|
||||||
use crate::mimeparser::{MimeMessage, SystemMessage};
|
use crate::mimeparser::{MimeMessage, SystemMessage};
|
||||||
use crate::param::Param;
|
use crate::param::Param;
|
||||||
@@ -374,10 +373,6 @@ async fn send_handshake_message(
|
|||||||
// Sends the Secure-Join-Auth header in mimefactory.rs.
|
// Sends the Secure-Join-Auth header in mimefactory.rs.
|
||||||
msg.param.set(Param::Arg2, invite.authcode());
|
msg.param.set(Param::Arg2, invite.authcode());
|
||||||
msg.param.set_int(Param::GuaranteeE2ee, 1);
|
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());
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user