File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
crates/bitwarden-core/src/key_management Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -596,9 +596,12 @@ pub fn make_user_signing_keys_for_enrollment(
596
596
597
597
// Make new keypair and sign the public key with it
598
598
let signature_keypair = SigningKey :: make ( SignatureAlgorithm :: Ed25519 ) ;
599
+ let temporary_signature_keypair_id = SigningKeyId :: Local ( "temporary_key_for_rotation" ) ;
600
+ #[ allow( deprecated) ]
601
+ ctx. set_signing_key ( temporary_signature_keypair_id, signature_keypair. clone ( ) ) ?;
599
602
let signed_public_key = ctx. make_signed_public_key (
600
603
AsymmetricKeyId :: UserPrivateKey ,
601
- SigningKeyId :: UserSigningKey ,
604
+ temporary_signature_keypair_id ,
602
605
) ?;
603
606
604
607
Ok ( MakeUserSigningKeysResponse {
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ key_ids! {
36
36
#[ signing]
37
37
pub enum SigningKeyId {
38
38
UserSigningKey ,
39
+ #[ local]
40
+ Local ( & ' static str ) ,
39
41
}
40
42
41
43
pub KeyIds => SymmetricKeyId , AsymmetricKeyId , SigningKeyId ;
You can’t perform that action at this time.
0 commit comments