From 39f48bf13bcecda4e5cfd17b90f1408727ad1784 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Wed, 25 Aug 2021 16:42:00 +0200 Subject: [PATCH] Add get_data() method to Response. --- openpgp-card/src/apdu/response.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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