diff --git a/proxmox-auth-api/src/auth_key.rs b/proxmox-auth-api/src/auth_key.rs index 733ffba9..3ea4bbd3 100644 --- a/proxmox-auth-api/src/auth_key.rs +++ b/proxmox-auth-api/src/auth_key.rs @@ -86,7 +86,7 @@ impl PrivateKey { PublicKey::from_pem(&self.public_key_to_pem()?) } - pub(self) fn sign(&self, digest: MessageDigest, data: &[u8]) -> Result, Error> { + fn sign(&self, digest: MessageDigest, data: &[u8]) -> Result, Error> { let mut signer = if self.key.id() == Id::ED25519 { // ed25519 does not support signing with digest Signer::new_without_digest(&self.key) diff --git a/proxmox-tfa/src/api/mod.rs b/proxmox-tfa/src/api/mod.rs index 16444f17..1437aa1b 100644 --- a/proxmox-tfa/src/api/mod.rs +++ b/proxmox-tfa/src/api/mod.rs @@ -75,7 +75,7 @@ pub trait OpenUserChallengeData { } } -pub(self) struct NoUserData; +struct NoUserData; impl OpenUserChallengeData for NoUserData { fn open(&self, _userid: &str) -> Result, Error> { @@ -1265,7 +1265,7 @@ impl TfaChallenge { } } -pub(self) fn bool_is_false(v: &bool) -> bool { +fn bool_is_false(v: &bool) -> bool { !v }