-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into remove-getrandom-custom
- Loading branch information
Showing
20 changed files
with
459 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// Copyright by contributors to this project. | ||
// SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
//! Recommended MLS extensions. | ||
//! | ||
//! Optional, but recommended extensions from [The Messaging Layer | ||
//! Security (MLS) Extensions][1]. | ||
//! | ||
//! [1]: https://datatracker.ietf.org/doc/html/draft-ietf-mls-extensions-04 | ||
use mls_rs_codec::{MlsDecode, MlsEncode, MlsSize}; | ||
use mls_rs_core::extension::{ExtensionType, MlsCodecExtension}; | ||
|
||
/// Last resort key packages. | ||
/// | ||
/// The extension allows clients that pre-publish key packages to | ||
/// signal to the Delivery Service which key packages are meant to be | ||
/// used as last resort key packages. | ||
#[cfg(feature = "last_resort_key_package_ext")] | ||
#[derive(Debug, Clone, PartialEq, Eq, MlsSize, MlsEncode, MlsDecode)] | ||
pub struct LastResortKeyPackageExt; | ||
|
||
#[cfg(feature = "last_resort_key_package_ext")] | ||
impl MlsCodecExtension for LastResortKeyPackageExt { | ||
fn extension_type() -> ExtensionType { | ||
ExtensionType::LAST_RESORT_KEY_PACKAGE | ||
} | ||
} |
Oops, something went wrong.