Skip to content

Commit

Permalink
Fix the msextensions build
Browse files Browse the repository at this point in the history
get_legacy_kid wasn't implemented for ms_oapxbc.

Signed-off-by: David Mulder <[email protected]>
  • Loading branch information
dmulder committed Apr 10, 2024
1 parent bcee118 commit 62e7536
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/crypto/ms_oapxbc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ impl JwsSigner for MsOapxbcSessionKeyHs256 {
JwsSigner::get_kid(&self.hmac_key)
}

fn get_legacy_kid(&self) -> &str {
JwsSigner::get_kid(&self.hmac_key)
}

fn update_header(&self, header: &mut ProtectedHeader) -> Result<(), JwtError> {
let ctx = general_purpose::STANDARD.encode(self.nonce);
header.ctx = Some(ctx);
Expand Down

0 comments on commit 62e7536

Please sign in to comment.