Drop unnecessary requirement on certificates being certified.

- The certificate being certified doesn't need to be certification
    capable.

  - Drop the check.
This commit is contained in:
Neal H. Walfield 2024-06-07 18:11:09 +02:00
parent b5a680e4f9
commit c8c7e24fe9
No known key found for this signature in database
GPG Key ID: 6863C9AD5B4D22D3

View File

@ -30,7 +30,7 @@ pub fn certify(sq: Sq, c: certify::Command)
// XXX: Change this interface: it's dangerous to guess whether an
// identifier is a file or a key handle.
let cert = if let Ok(kh) = cert.parse::<KeyHandle>() {
sq.lookup_one(&kh, Some(KeyFlags::empty().set_certification()), true)?
sq.lookup_one(&kh, None, true)?
} else {
Cert::from_file(cert)?
};