diff --git a/openpgp-card/src/apdu/response.rs b/openpgp-card/src/apdu/response.rs index 5de13f0..b5f0690 100644 --- a/openpgp-card/src/apdu/response.rs +++ b/openpgp-card/src/apdu/response.rs @@ -15,6 +15,12 @@ pub struct Response { data: Vec, } +impl Response { + pub fn get_data(&self) -> &[u8] { + &self.data + } +} + /// "Raw" APDU Response, including the status bytes. /// /// This type is used for processing inside the openpgp-card crate