Patch to fix ed25519 in PIV slot.
This commit is contained in:
+4
-2
@@ -565,8 +565,10 @@ impl Key {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if !buf.is_empty() {
|
if !buf.is_empty() {
|
||||||
let cert = Certificate::from_bytes(buf)?;
|
match Certificate::from_bytes(buf) {
|
||||||
keys.push(Key { slot, cert });
|
Ok(cert) => keys.push(Key { slot, cert }),
|
||||||
|
Err(Error::InvalidObject) => {} // skip slots we can't parse (e.g. Ed25519)
|
||||||
|
Err(other) => return Err(other),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user