crypto: Clear out the signatures when signing a device.
This avoids re-uploading all the existing signatures.master
parent
5c530cf9ee
commit
cb95f576a5
|
@ -122,12 +122,12 @@ impl PrivateCrossSigningIdentity {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sign the given device keys with this identity.
|
/// Sign the given device keys with this identity.
|
||||||
#[allow(dead_code)]
|
|
||||||
pub(crate) async fn sign_device(
|
pub(crate) async fn sign_device(
|
||||||
&self,
|
&self,
|
||||||
device: &ReadOnlyDevice,
|
device: &ReadOnlyDevice,
|
||||||
) -> Result<SignatureUploadRequest, SignatureError> {
|
) -> Result<SignatureUploadRequest, SignatureError> {
|
||||||
let device_keys = device.as_device_keys();
|
let mut device_keys = device.as_device_keys();
|
||||||
|
device_keys.signatures.clear();
|
||||||
self.sign_device_keys(device_keys).await
|
self.sign_device_keys(device_keys).await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue