crypto: Rename the method to set the local trust of a device.

master
Damir Jelić 2020-08-20 18:01:34 +02:00
parent c307690c2e
commit 202c20feda
2 changed files with 11 additions and 5 deletions

View File

@ -81,16 +81,19 @@ impl Device {
self.inner.trust_state()
}
/// Set the trust state of the device to the given state.
/// Set the local trust state of the device to the given state.
///
/// This won't affect any cross signing trust state, this only sets a flag
/// marking to have the given trust state.
///
/// # Arguments
///
/// * `trust_state` - The new trust state that should be set for the device.
pub async fn set_trust_state(
pub async fn set_local_trust(
&self,
trust_state: LocalTrust,
) -> StdResult<(), CryptoStoreError> {
self.inner.set_trust_state(trust_state).await
self.inner.set_local_trust(trust_state).await
}
}

View File

@ -125,12 +125,15 @@ impl Device {
}
}
/// Set the trust state of the device to the given state.
/// Set the local trust state of the device to the given state.
///
/// This won't affect any cross signing trust state, this only sets a flag
/// marking to have the given trust state.
///
/// # Arguments
///
/// * `trust_state` - The new trust state that should be set for the device.
pub async fn set_trust_state(&self, trust_state: LocalTrust) -> StoreResult<()> {
pub async fn set_local_trust(&self, trust_state: LocalTrust) -> StoreResult<()> {
self.inner.set_trust_state(trust_state);
self.verification_machine