Add get_data() method to Response.

This commit is contained in:
Heiko Schaefer 2021-08-25 16:42:00 +02:00
parent 780b6e724c
commit 39f48bf13b

View file

@ -15,6 +15,12 @@ pub struct Response {
data: Vec<u8>,
}
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