Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
8c86cab372
|
|||
|
200f9be97b
|
+6
-3
@@ -565,9 +565,12 @@ impl Key {
|
||||
};
|
||||
|
||||
if !buf.is_empty() {
|
||||
let cert = Certificate::from_bytes(buf)?;
|
||||
keys.push(Key { slot, cert });
|
||||
}
|
||||
match Certificate::from_bytes(buf) {
|
||||
Ok(cert) => keys.push(Key { slot, cert }),
|
||||
Err(Error::InvalidObject) => {} // skip slots we can't parse (e.g. Ed25519)
|
||||
Err(other) => return Err(other),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(keys)
|
||||
|
||||
Reference in New Issue
Block a user