Merge branch 'master' into new-state-store
commit
fcb50956bb
|
@ -42,6 +42,7 @@ async fn bootstrap(client: Client, user_id: UserId, password: String) {
|
||||||
.read_line(&mut input)
|
.read_line(&mut input)
|
||||||
.expect("error: unable to read user input");
|
.expect("error: unable to read user input");
|
||||||
|
|
||||||
|
#[cfg(feature = "encryption")]
|
||||||
if let Err(e) = client.bootstrap_cross_signing(None).await {
|
if let Err(e) = client.bootstrap_cross_signing(None).await {
|
||||||
if let Some(response) = e.uiaa_response() {
|
if let Some(response) = e.uiaa_response() {
|
||||||
let auth_data = auth_data(&user_id, &password, response.session.as_deref());
|
let auth_data = auth_data(&user_id, &password, response.session.as_deref());
|
||||||
|
@ -53,6 +54,9 @@ async fn bootstrap(client: Client, user_id: UserId, password: String) {
|
||||||
panic!("Error durign cross signing bootstrap {:#?}", e);
|
panic!("Error durign cross signing bootstrap {:#?}", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(feature = "encryption"))]
|
||||||
|
panic!("Cross signing requires the encryption feature to be enabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn login(
|
async fn login(
|
||||||
|
|
|
@ -135,7 +135,6 @@ impl PrivateCrossSigningIdentity {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sign the given public user identity with this private identity.
|
/// Sign the given public user identity with this private identity.
|
||||||
#[allow(dead_code)]
|
|
||||||
pub(crate) async fn sign_user(
|
pub(crate) async fn sign_user(
|
||||||
&self,
|
&self,
|
||||||
user_identity: &UserIdentity,
|
user_identity: &UserIdentity,
|
||||||
|
|
|
@ -203,7 +203,6 @@ impl UserSigning {
|
||||||
PickledUserSigning { pickle, public_key }
|
PickledUserSigning { pickle, public_key }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
pub async fn sign_user(
|
pub async fn sign_user(
|
||||||
&self,
|
&self,
|
||||||
user: &UserIdentity,
|
user: &UserIdentity,
|
||||||
|
|
Loading…
Reference in New Issue