Skip to content

Commit ab112e5

Browse files
committed
api: remove TODO comment
The key manager API is given a keyring ID to attach the key to, so there's no need to handle special keyrings.
1 parent 4a1a2b0 commit ab112e5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/api.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,6 @@ impl KeyManager {
682682
/// seconds are ignored). This is to prevent a denial-of-service by
683683
/// requesting a non-existant key repeatedly. The requester must have
684684
/// `write` permission on the keyring.
685-
///
686-
/// TODO: Accept `SpecialKeyring` values here. They are special in that they refer to the
687-
/// *requester's* special keyring and not this one.
688685
pub fn reject(self, keyring: &Keyring, timeout: Duration, error: errno::Errno) -> Result<()> {
689686
let errno::Errno(errval) = error;
690687
check_call(unsafe { keyctl_reject(self.key.id, timeout.as_secs() as u32, errval as u32, keyring.id) },

0 commit comments

Comments
 (0)