remove CryptMode::sign_only special method
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
1 parent
4e36f78438
commit
af3a0ae7b1
2 files changed
+6
-11
No files matched your search
@@ -31,16 +31,6 @@ pub enum CryptMode {
|
||||
SignOnly,
|
||||
}
|
||||
|
||||
impl CryptMode {
|
||||
/// Maps values other than `None` to `SignOnly`.
|
||||
pub fn sign_only(self) -> Self {
|
||||
match self {
|
||||
CryptMode::None => CryptMode::None,
|
||||
_ => CryptMode::SignOnly,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Encryption Configuration with secret key
|
||||
///
|
||||
/// This structure stores the secret key and provides helpers for
|
||||
|
||||
Reference in new issue
Block a user