Skip to content

Commit

Permalink
more bad merge items
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed May 16, 2024
1 parent d3aa3cc commit e174158
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
3 changes: 1 addition & 2 deletions memory_storage/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use openmls_traits::storage::*;

use serde::{Deserialize, Serialize};
use std::{collections::HashMap, sync::RwLock};

Expand Down Expand Up @@ -894,7 +893,7 @@ impl StorageProvider<CURRENT_VERSION> for MemoryStorage {
aad: &[u8],
) -> Result<(), Self::Error> {
let key = serde_json::to_vec(group_id)?;
self.write::<CURRENT_VERSION>(AAD_LABEL, &key, serde_json::to_vec(aad).unwrap())
self.write::<CURRENT_VERSION>(AAD_LABEL, &key, aad.to_vec())
}

fn delete_aad<GroupId: traits::GroupId<CURRENT_VERSION>>(
Expand Down
2 changes: 1 addition & 1 deletion openmls/src/ciphersuite/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use std::hash::Hash;

mod aead;
mod codec;
pub mod hpke;
pub(crate) mod hpke;
mod kdf_label;
mod mac;
mod reuse_guard;
Expand Down
5 changes: 0 additions & 5 deletions openmls/src/key_packages/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,6 @@ impl KeyPackage {
pub fn last_resort(&self) -> bool {
self.payload.extensions.contains(ExtensionType::LastResort)
}

/// Get the lifetime of the KeyPackage
pub fn life_time(&self) -> &Lifetime {
self.payload.leaf_node.life_time().unwrap()
}
}

/// Crate visible `KeyPackage` functions.
Expand Down
4 changes: 2 additions & 2 deletions openmls/src/messages/proposals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ pub struct AppAckProposal {
TlsSize,
)]
pub struct GroupContextExtensionProposal {
pub(crate) extensions: Extensions,
extensions: Extensions,
}

impl GroupContextExtensionProposal {
Expand All @@ -478,7 +478,7 @@ impl GroupContextExtensionProposal {
}

/// Get the extensions of the proposal
pub fn extensions(&self) -> &Extensions {
pub(crate) fn extensions(&self) -> &Extensions {
&self.extensions
}
}
Expand Down

0 comments on commit e174158

Please sign in to comment.