From a10be4d06314db7ff9e2d9bb57b696b4e8c20e14 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 29 Mar 2026 10:53:43 +0200 Subject: expose decoded GroupText contents --- packet-lib/src/text.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packet-lib/src/text.rs b/packet-lib/src/text.rs index 1f3b955..24bd220 100644 --- a/packet-lib/src/text.rs +++ b/packet-lib/src/text.rs @@ -6,7 +6,7 @@ use chrono::DateTime; #[derive(PartialEq, Debug, Clone)] pub struct Text<'a> { - pub cipher: PeerToPeerCipher<'a>, + pub(crate) cipher: PeerToPeerCipher<'a>, pub cleartext: Option, } @@ -177,10 +177,10 @@ impl core::fmt::Display for GroupData { #[derive(PartialEq, Clone, core::fmt::Debug)] pub struct GroupText<'a> { - hash: u8, - mac: u16, - ciphertext: &'a [u8], - cleartext: Option, + pub(crate) hash: u8, + pub(crate) mac: u16, + pub(crate) ciphertext: &'a [u8], + pub cleartext: Option, } impl<'a> TryFrom<&'a [u8]> for GroupText<'a> { -- cgit v1.2.3