Skip to content

Commit

Permalink
Last changes before shipping\!
Browse files Browse the repository at this point in the history
  • Loading branch information
gferon committed Apr 27, 2021
1 parent 66b8969 commit 926d062
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions libsignal-service/src/sealed_session_cipher.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{push_service::ProfileKey, ServiceAddress};
use std::convert::TryFrom;

use aes_ctr::{
cipher::stream::{NewStreamCipher, StreamCipher},
Expand All @@ -17,7 +17,7 @@ use rand::{CryptoRng, Rng};
use sha2::Sha256;
use uuid::Uuid;

use std::convert::TryFrom;
use crate::{push_service::ProfileKey, ServiceAddress};

#[derive(Debug, thiserror::Error)]
pub enum SealedSessionError {
Expand Down
23 changes: 11 additions & 12 deletions libsignal-service/src/sender.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
use std::time::SystemTime;

use crate::proto::{
attachment_pointer::AttachmentIdentifier,
attachment_pointer::Flags as AttachmentPointerFlags, sync_message,
AttachmentPointer, SyncMessage,
};
use crate::{
cipher::get_preferred_protocol_address, session_store::SessionStoreExt,
};

use chrono::prelude::*;
use libsignal_protocol::{
process_prekey_bundle, IdentityKeyStore, ProtocolAddress,
Expand All @@ -18,8 +9,17 @@ use log::{info, trace};
use rand::{CryptoRng, Rng};

use crate::{
cipher::ServiceCipher, content::ContentBody, push_service::*,
sealed_session_cipher::UnidentifiedAccess, ServiceAddress,
cipher::{get_preferred_protocol_address, ServiceCipher},
content::ContentBody,
proto::{
attachment_pointer::AttachmentIdentifier,
attachment_pointer::Flags as AttachmentPointerFlags, sync_message,
AttachmentPointer, SyncMessage,
},
push_service::*,
sealed_session_cipher::UnidentifiedAccess,
session_store::SessionStoreExt,
ServiceAddress,
};

pub use crate::proto::{ContactDetails, GroupDetails};
Expand Down Expand Up @@ -363,7 +363,6 @@ where
if let Some(e164) = recipient.e164() {
self.session_store.delete_all_sessions(&e164)?;
}
log::warn!("deleting all sessions: unimplemented following the switch to the Rust version of libsignal-protocol");
}

result
Expand Down

0 comments on commit 926d062

Please sign in to comment.