mark signed manifests as such
for less-confusing display in the web interface Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
9a38fa29c2
commit
882c082369
|
@ -67,7 +67,10 @@ fn read_backup_index(
|
|||
|
||||
result.push(BackupContent {
|
||||
filename: MANIFEST_BLOB_NAME.to_string(),
|
||||
crypt_mode: Some(CryptMode::None),
|
||||
crypt_mode: match manifest.signature {
|
||||
Some(_) => Some(CryptMode::SignOnly),
|
||||
None => Some(CryptMode::None),
|
||||
},
|
||||
size: Some(index_size),
|
||||
});
|
||||
|
||||
|
|
|
@ -72,6 +72,7 @@ pub struct BackupManifest {
|
|||
files: Vec<FileInfo>,
|
||||
#[serde(default="empty_value")] // to be compatible with < 0.8.0 backups
|
||||
pub unprotected: Value,
|
||||
pub signature: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
@ -105,6 +106,7 @@ impl BackupManifest {
|
|||
backup_time: snapshot.backup_time().timestamp(),
|
||||
files: Vec::new(),
|
||||
unprotected: json!({}),
|
||||
signature: None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue