Skip to content

Commit

Permalink
Stop setting new lifetimes (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas authored Aug 27, 2024
1 parent a06b8d9 commit 0a3787f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions xmtp_mls/src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ use openmls::{
extensions::{
ApplicationIdExtension, Extension, ExtensionType, Extensions, LastResortExtension,
},
key_packages::Lifetime,
messages::proposals::ProposalType,
prelude::{Capabilities, Credential as OpenMlsCredential},
prelude_test::KeyPackage,
Expand Down Expand Up @@ -381,7 +380,6 @@ impl Identity {
.leaf_node_capabilities(capabilities)
.leaf_node_extensions(leaf_node_extensions)
.key_package_extensions(key_package_extensions)
.key_package_lifetime(Lifetime::new(6 * 30 * 86400))
.build(
CIPHERSUITE,
&provider,
Expand Down
2 changes: 0 additions & 2 deletions xmtp_mls/src/verified_key_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ pub enum KeyPackageVerificationError {
InvalidCredential,
#[error(transparent)]
Association(#[from] AssociationError),
#[error("invalid lifetime")]
InvalidLifetime,
#[error("generic: {0}")]
Generic(String),
#[error("wrong credential type")]
Expand Down
2 changes: 0 additions & 2 deletions xmtp_mls/src/verified_key_package_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ pub enum KeyPackageVerificationError {
TlsError(#[from] TlsCodecError),
#[error("mls validation: {0}")]
MlsValidation(#[from] KeyPackageVerifyError),
#[error("invalid lifetime")]
InvalidLifetime,
#[error("wrong credential type")]
WrongCredentialType(#[from] BasicCredentialError),
#[error(transparent)]
Expand Down

0 comments on commit 0a3787f

Please sign in to comment.