From af9f72e9d82f07c05d4a1827e1f3c03daf13ed8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 24 Nov 2020 14:05:19 +0100 Subject: [PATCH] fingerprint: add bytes() accessor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit needed for libproxmox-backup-qemu0 Signed-off-by: Fabian Grünbichler --- src/backup/crypt_config.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backup/crypt_config.rs b/src/backup/crypt_config.rs index 7d27706a..67482a75 100644 --- a/src/backup/crypt_config.rs +++ b/src/backup/crypt_config.rs @@ -47,6 +47,12 @@ pub struct Fingerprint { bytes: [u8; 32], } +impl Fingerprint { + pub fn bytes(&self) -> &[u8; 32] { + &self.bytes + } +} + /// Display as short key ID impl Display for Fingerprint { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {