From 79af3912dc234eac499d1930f49c2c8ae7f5f4fb Mon Sep 17 00:00:00 2001 From: valere Date: Tue, 2 May 2023 14:38:32 +0200 Subject: [PATCH] add binding for compute_all_signatures --- bindings/matrix-sdk-crypto-ffi/src/machine.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bindings/matrix-sdk-crypto-ffi/src/machine.rs b/bindings/matrix-sdk-crypto-ffi/src/machine.rs index 7e156baa1..45b15313f 100644 --- a/bindings/matrix-sdk-crypto-ffi/src/machine.rs +++ b/bindings/matrix-sdk-crypto-ffi/src/machine.rs @@ -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( &self, backup_info: String, + compute_all_signatures: bool, ) -> Result { let backup_info = serde_json::from_str(&backup_info)?; Ok(self .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()) } }