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:
parent
b5a680e4f9
commit
c8c7e24fe9
@ -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)?
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user