crypto: Move the session managers under a common module.
parent
b5c9473424
commit
e7a24d5e68
|
@ -27,12 +27,12 @@ use matrix_sdk_common::{
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
error::OlmResult,
|
error::OlmResult,
|
||||||
group_manager::GroupSessionManager,
|
|
||||||
identities::{
|
identities::{
|
||||||
MasterPubkey, OwnUserIdentity, ReadOnlyDevice, SelfSigningPubkey, UserIdentities,
|
MasterPubkey, OwnUserIdentity, ReadOnlyDevice, SelfSigningPubkey, UserIdentities,
|
||||||
UserIdentity, UserSigningPubkey,
|
UserIdentity, UserSigningPubkey,
|
||||||
},
|
},
|
||||||
requests::KeysQueryRequest,
|
requests::KeysQueryRequest,
|
||||||
|
session_manager::GroupSessionManager,
|
||||||
store::{Result as StoreResult, Store},
|
store::{Result as StoreResult, Store},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -376,10 +376,10 @@ pub(crate) mod test {
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
group_manager::GroupSessionManager,
|
|
||||||
identities::IdentityManager,
|
identities::IdentityManager,
|
||||||
machine::test::response_from_file,
|
machine::test::response_from_file,
|
||||||
olm::{Account, ReadOnlyAccount},
|
olm::{Account, ReadOnlyAccount},
|
||||||
|
session_manager::GroupSessionManager,
|
||||||
store::{CryptoStore, MemoryStore, Store},
|
store::{CryptoStore, MemoryStore, Store},
|
||||||
verification::VerificationMachine,
|
verification::VerificationMachine,
|
||||||
};
|
};
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
|
|
||||||
mod error;
|
mod error;
|
||||||
mod file_encryption;
|
mod file_encryption;
|
||||||
mod group_manager;
|
|
||||||
mod identities;
|
mod identities;
|
||||||
mod key_request;
|
mod key_request;
|
||||||
mod machine;
|
mod machine;
|
||||||
|
|
|
@ -46,7 +46,6 @@ use matrix_sdk_common::{
|
||||||
use crate::store::sqlite::SqliteStore;
|
use crate::store::sqlite::SqliteStore;
|
||||||
use crate::{
|
use crate::{
|
||||||
error::{EventError, MegolmError, MegolmResult, OlmError, OlmResult},
|
error::{EventError, MegolmError, MegolmResult, OlmError, OlmResult},
|
||||||
group_manager::GroupSessionManager,
|
|
||||||
identities::{Device, IdentityManager, ReadOnlyDevice, UserDevices, UserIdentities},
|
identities::{Device, IdentityManager, ReadOnlyDevice, UserDevices, UserIdentities},
|
||||||
key_request::KeyRequestMachine,
|
key_request::KeyRequestMachine,
|
||||||
olm::{
|
olm::{
|
||||||
|
@ -54,7 +53,7 @@ use crate::{
|
||||||
InboundGroupSession, ReadOnlyAccount,
|
InboundGroupSession, ReadOnlyAccount,
|
||||||
},
|
},
|
||||||
requests::{IncomingResponse, OutgoingRequest},
|
requests::{IncomingResponse, OutgoingRequest},
|
||||||
session_manager::SessionManager,
|
session_manager::{GroupSessionManager, SessionManager},
|
||||||
store::{CryptoStore, MemoryStore, Result as StoreResult, Store},
|
store::{CryptoStore, MemoryStore, Result as StoreResult, Store},
|
||||||
verification::{Sas, VerificationMachine},
|
verification::{Sas, VerificationMachine},
|
||||||
ToDeviceRequest,
|
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