Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug-for bug compatibility with libolm's PkEncryption support #171

Merged
merged 3 commits into from
Sep 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Constify some more functions
poljar committed Sep 11, 2024
commit 484317b2cb52431b6a6fdcfc745a5e2538ae15a8
2 changes: 1 addition & 1 deletion src/olm/messages/pre_key.rs
Original file line number Diff line number Diff line change
@@ -153,7 +153,7 @@ impl PreKeyMessage {

/// Create a new pre-key message from the session keys and standard message.
#[cfg(feature = "low-level-api")]
pub fn wrap(session_keys: SessionKeys, message: Message) -> Self {
pub const fn wrap(session_keys: SessionKeys, message: Message) -> Self {
PreKeyMessage::new(session_keys, message)
}

4 changes: 2 additions & 2 deletions src/olm/session/message_key.rs
Original file line number Diff line number Diff line change
@@ -95,13 +95,13 @@ impl MessageKey {

/// Get the message key's ratchet key.
#[cfg(feature = "low-level-api")]
pub fn ratchet_key(&self) -> RatchetPublicKey {
pub const fn ratchet_key(&self) -> RatchetPublicKey {
self.ratchet_key
}

/// Get the message key's index.
#[cfg(feature = "low-level-api")]
pub fn index(&self) -> u64 {
pub const fn index(&self) -> u64 {
self.index
}
}