crypto: Move the session managers under a common module.

master
Damir Jelić 2020-10-16 11:09:55 +02:00
parent b5c9473424
commit e7a24d5e68
6 changed files with 22 additions and 5 deletions

View File

@ -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,
};

View File

@ -29,7 +29,6 @@
mod error;
mod file_encryption;
mod group_manager;
mod identities;
mod key_request;
mod machine;

View File

@ -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,

View File

@ -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;