diff --git a/src/extension.rs b/src/extension.rs index f2032cf..059088e 100644 --- a/src/extension.rs +++ b/src/extension.rs @@ -9,7 +9,7 @@ pub mod request; use serde::{Deserialize, Serialize}; use trussed::{ serde_extensions::{Extension, ExtensionClient, ExtensionResult}, - types::KeyId, + types::{KeyId, Message}, }; use crate::{Pin, PinId}; @@ -172,6 +172,14 @@ pub trait AuthClient: ExtensionClient { fn pin_retries>(&mut self, id: I) -> AuthResult<'_, reply::PinRetries, Self> { self.extension(request::PinRetries { id: id.into() }) } + + /// Returns a keyid that is persistent given the "info" parameter + fn get_application_key( + &mut self, + info: Message, + ) -> AuthResult<'_, reply::GetApplicationKey, Self> { + self.extension(request::GetApplicationKey { info }) + } } impl> AuthClient for C {}