add binding for compute_all_signatures
This commit is contained in:
parent
557d27a1a3
commit
79af3912dc
|
@ -1361,15 +1361,19 @@ impl OlmMachine {
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
///
|
||||||
|
/// * `compute_all_signatures` - If true will check all signatures, if
|
||||||
|
/// false will stop as soon as a valid and trusted signature is found
|
||||||
pub fn verify_backup(
|
pub fn verify_backup(
|
||||||
&self,
|
&self,
|
||||||
backup_info: String,
|
backup_info: String,
|
||||||
|
compute_all_signatures: bool,
|
||||||
) -> Result<SignatureVerification, CryptoStoreError> {
|
) -> Result<SignatureVerification, CryptoStoreError> {
|
||||||
let backup_info = serde_json::from_str(&backup_info)?;
|
let backup_info = serde_json::from_str(&backup_info)?;
|
||||||
|
|
||||||
Ok(self
|
Ok(self
|
||||||
.runtime
|
.runtime
|
||||||
.block_on(self.inner.backup_machine().verify_backup(backup_info, false))?
|
.block_on(self.inner.backup_machine().verify_backup(backup_info, compute_all_signatures))?
|
||||||
.into())
|
.into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue