From fa33f5ef12a7c3eec98c8527f21d355c472a1576 Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Wed, 3 Apr 2024 11:21:34 -0700 Subject: [PATCH] remove test only distinction for group_context_ext_proposal --- openmls/src/group/core_group/mod.rs | 9 +++++---- openmls/src/group/mls_group/proposal.rs | 1 - openmls/src/messages/proposals.rs | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/openmls/src/group/core_group/mod.rs b/openmls/src/group/core_group/mod.rs index b3f02738c1..992b5aa775 100644 --- a/openmls/src/group/core_group/mod.rs +++ b/openmls/src/group/core_group/mod.rs @@ -1043,11 +1043,7 @@ impl CoreGroup { group_info: group_info.filter(|_| self.use_ratchet_tree_extension), }) } -} -// Test functions -#[cfg(test)] -impl CoreGroup { pub(crate) fn create_group_context_ext_proposal( &self, framing_parameters: FramingParameters, @@ -1082,6 +1078,11 @@ impl CoreGroup { ) .map_err(|e| e.into()) } +} + +// Test functions +#[cfg(test)] +impl CoreGroup { pub(crate) fn use_ratchet_tree_extension(&self) -> bool { self.use_ratchet_tree_extension diff --git a/openmls/src/group/mls_group/proposal.rs b/openmls/src/group/mls_group/proposal.rs index bc00077640..8d5f2be753 100644 --- a/openmls/src/group/mls_group/proposal.rs +++ b/openmls/src/group/mls_group/proposal.rs @@ -319,7 +319,6 @@ impl MlsGroup { } } - #[cfg(test)] pub fn propose_group_context_extensions( &mut self, provider: &impl OpenMlsProvider, diff --git a/openmls/src/messages/proposals.rs b/openmls/src/messages/proposals.rs index 6bf5813c55..fd1e0953a1 100644 --- a/openmls/src/messages/proposals.rs +++ b/openmls/src/messages/proposals.rs @@ -494,7 +494,6 @@ pub struct GroupContextExtensionProposal { impl GroupContextExtensionProposal { /// Create a new [`GroupContextExtensionProposal`]. - #[cfg(test)] pub(crate) fn new(extensions: Extensions) -> Self { Self { extensions } }