mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
api: make store_self_keypair private
It is not useful as public API because input argument types are not public. Use `imex` instead.
This commit is contained in:
@@ -255,7 +255,7 @@ pub(crate) async fn load_keypair(
|
|||||||
|
|
||||||
/// Use of a key pair for encryption or decryption.
|
/// Use of a key pair for encryption or decryption.
|
||||||
///
|
///
|
||||||
/// This is used by [store_self_keypair] to know what kind of key is
|
/// This is used by `store_self_keypair` to know what kind of key is
|
||||||
/// being saved.
|
/// being saved.
|
||||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||||
pub enum KeyPairUse {
|
pub enum KeyPairUse {
|
||||||
@@ -277,7 +277,7 @@ pub enum KeyPairUse {
|
|||||||
/// same key again overwrites it.
|
/// same key again overwrites it.
|
||||||
///
|
///
|
||||||
/// [Config::ConfiguredAddr]: crate::config::Config::ConfiguredAddr
|
/// [Config::ConfiguredAddr]: crate::config::Config::ConfiguredAddr
|
||||||
pub async fn store_self_keypair(
|
pub(crate) async fn store_self_keypair(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
keypair: &KeyPair,
|
keypair: &KeyPair,
|
||||||
default: KeyPairUse,
|
default: KeyPairUse,
|
||||||
|
|||||||
Reference in New Issue
Block a user