crypto: Move the session managers under a common module.
parent
b5c9473424
commit
e7a24d5e68
|
@ -27,12 +27,12 @@ use matrix_sdk_common::{
|
|||
|
||||
use crate::{
|
||||
error::OlmResult,
|
||||
group_manager::GroupSessionManager,
|
||||
identities::{
|
||||
MasterPubkey, OwnUserIdentity, ReadOnlyDevice, SelfSigningPubkey, UserIdentities,
|
||||
UserIdentity, UserSigningPubkey,
|
||||
},
|
||||
requests::KeysQueryRequest,
|
||||
session_manager::GroupSessionManager,
|
||||
store::{Result as StoreResult, Store},
|
||||
};
|
||||
|
||||
|
@ -376,10 +376,10 @@ pub(crate) mod test {
|
|||
use serde_json::json;
|
||||
|
||||
use crate::{
|
||||
group_manager::GroupSessionManager,
|
||||
identities::IdentityManager,
|
||||
machine::test::response_from_file,
|
||||
olm::{Account, ReadOnlyAccount},
|
||||
session_manager::GroupSessionManager,
|
||||
store::{CryptoStore, MemoryStore, Store},
|
||||
verification::VerificationMachine,
|
||||
};
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
|
||||
mod error;
|
||||
mod file_encryption;
|
||||
mod group_manager;
|
||||
mod identities;
|
||||
mod key_request;
|
||||
mod machine;
|
||||
|
|
|
@ -46,7 +46,6 @@ use matrix_sdk_common::{
|
|||
use crate::store::sqlite::SqliteStore;
|
||||
use crate::{
|
||||
error::{EventError, MegolmError, MegolmResult, OlmError, OlmResult},
|
||||
group_manager::GroupSessionManager,
|
||||
identities::{Device, IdentityManager, ReadOnlyDevice, UserDevices, UserIdentities},
|
||||
key_request::KeyRequestMachine,
|
||||
olm::{
|
||||
|
@ -54,7 +53,7 @@ use crate::{
|
|||
InboundGroupSession, ReadOnlyAccount,
|
||||
},
|
||||
requests::{IncomingResponse, OutgoingRequest},
|
||||
session_manager::SessionManager,
|
||||
session_manager::{GroupSessionManager, SessionManager},
|
||||
store::{CryptoStore, MemoryStore, Result as StoreResult, Store},
|
||||
verification::{Sas, VerificationMachine},
|
||||
ToDeviceRequest,
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
// Copyright 2020 The Matrix.org Foundation C.I.C.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
mod group_sessions;
|
||||
mod sessions;
|
||||
|
||||
pub(crate) use group_sessions::GroupSessionManager;
|
||||
pub(crate) use sessions::SessionManager;
|
Loading…
Reference in New Issue