[pbs-devel] applied: [PATCH proxmox-backup] fingerprint: add bytes() accessor

Dietmar Maurer dietmar at proxmox.com
Wed Nov 25 08:27:56 CET 2020


applied

> On 11/24/2020 2:05 PM Fabian Grünbichler <f.gruenbichler at proxmox.com> wrote:
> 
>  
> needed for libproxmox-backup-qemu0
> 
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
>  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 {
> -- 
> 2.20.1
> 
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel





More information about the pbs-devel mailing list