]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2/admin/datastore.rs
introduce a CryptMode enum
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 7 Jul 2020 13:20:20 +0000 (15:20 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 7 Jul 2020 13:24:19 +0000 (15:24 +0200)
commitf28d9088ed26d55316d760888420046632e318ae
treef177e2b7f0b36311d7dc7ec9ce49892dbf0102b8
parent56b814e3785bec7ab5da2e77eb60173538bd7ca9
introduce a CryptMode enum

This also replaces the recently introduced --encryption
parameter on the client with a --crypt-mode parameter.

This can be "none", "encrypt" or "sign-only".

Note that this introduces various changes in the API types
which previously did not take the above distinction into
account properly:

Both `BackupContent` and the manifest's `FileInfo`:
    lose `encryption: Option<bool>`
    gain `crypt_mode: Option<CryptMode>`

Within the backup manifest itself, the "crypt-mode" property
will always be set.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/api2/admin/datastore.rs
src/api2/types.rs
src/backup/crypt_config.rs
src/backup/manifest.rs
src/bin/proxmox-backup-client.rs
src/client/backup_writer.rs