openpgp-card-sequoia: Implement MANAGE SECURITY ENVIRONMENT command
This commit is contained in:
parent
3ca6a514f4
commit
0c7fae8ef9
1 changed files with 10 additions and 0 deletions
|
@ -349,6 +349,16 @@ impl<'a> Open<'a> {
|
|||
self.opt.algorithm_information()
|
||||
}
|
||||
|
||||
/// "MANAGE SECURITY ENVIRONMENT"
|
||||
/// Make `key_ref` usable for the operation normally done by the key designated by `for_operation`
|
||||
pub fn manage_security_environment(
|
||||
&mut self,
|
||||
for_operation: KeyType,
|
||||
key_ref: KeyType,
|
||||
) -> Result<(), Error> {
|
||||
self.opt.manage_security_environment(for_operation, key_ref)
|
||||
}
|
||||
|
||||
/// Get "Attestation Certificate (Yubico)"
|
||||
pub fn attestation_certificate(&mut self) -> Result<Vec<u8>, Error> {
|
||||
self.opt.attestation_certificate()
|
||||
|
|
Loading…
Reference in a new issue