fingerprint: add bytes() accessor
needed for libproxmox-backup-qemu0 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
5176346b30
commit
af9f72e9d8
|
@ -47,6 +47,12 @@ pub struct Fingerprint {
|
||||||
bytes: [u8; 32],
|
bytes: [u8; 32],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Fingerprint {
|
||||||
|
pub fn bytes(&self) -> &[u8; 32] {
|
||||||
|
&self.bytes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Display as short key ID
|
/// Display as short key ID
|
||||||
impl Display for Fingerprint {
|
impl Display for Fingerprint {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
|
|
Loading…
Reference in New Issue