crypto: Expose some missing structs that are needed to implement a cryptostore.

master
Damir Jelić 2020-09-01 17:37:01 +02:00
parent 6872cc717b
commit 0de4a21320
3 changed files with 5 additions and 2 deletions

View File

@ -41,13 +41,14 @@ mod verification;
pub use device::{Device, LocalTrust, ReadOnlyDevice, UserDevices}; pub use device::{Device, LocalTrust, ReadOnlyDevice, UserDevices};
pub use error::{MegolmError, OlmError}; pub use error::{MegolmError, OlmError};
pub use machine::OlmMachine; pub use machine::OlmMachine;
use memory_stores::ReadOnlyUserDevices; pub use memory_stores::ReadOnlyUserDevices;
pub(crate) use olm::Account; pub(crate) use olm::Account;
pub use olm::EncryptionSettings; pub use olm::EncryptionSettings;
pub use requests::{IncomingResponse, OutgoingRequest, OutgoingRequests}; pub use requests::{IncomingResponse, OutgoingRequest, OutgoingRequests};
#[cfg(feature = "sqlite_cryptostore")] #[cfg(feature = "sqlite_cryptostore")]
pub use store::sqlite::SqliteStore; pub use store::sqlite::SqliteStore;
pub use store::{CryptoStore, CryptoStoreError}; pub use store::{CryptoStore, CryptoStoreError};
pub use user_identity::{OwnUserIdentity, UserIdentities, UserIdentity};
pub use verification::Sas; pub use verification::Sas;
use error::SignatureError; use error::SignatureError;

View File

@ -26,7 +26,8 @@ use matrix_sdk_common::{
api::r0::keys::{OneTimeKey, SignedKey}, api::r0::keys::{OneTimeKey, SignedKey},
encryption::DeviceKeys, encryption::DeviceKeys,
identifiers::{ identifiers::{
DeviceId, DeviceKeyAlgorithm, DeviceKeyId, EventEncryptionAlgorithm, RoomId, UserId, DeviceId, DeviceIdBox, DeviceKeyAlgorithm, DeviceKeyId, EventEncryptionAlgorithm, RoomId,
UserId,
}, },
instant::Instant, instant::Instant,
locks::Mutex, locks::Mutex,

View File

@ -24,6 +24,7 @@ mod session;
pub use account::{Account, IdentityKeys}; pub use account::{Account, IdentityKeys};
pub use group_sessions::{EncryptionSettings, InboundGroupSession}; pub use group_sessions::{EncryptionSettings, InboundGroupSession};
pub(crate) use group_sessions::{GroupSessionKey, OutboundGroupSession}; pub(crate) use group_sessions::{GroupSessionKey, OutboundGroupSession};
pub use olm_rs::PicklingMode;
pub(crate) use session::OlmMessage; pub(crate) use session::OlmMessage;
pub use session::Session; pub use session::Session;