Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Firstyear committed Jan 10, 2024
1 parent e5d1932 commit 21930b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/crypto/a128gcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ pub(crate) fn aes_gcm_encipher(
error!(?ossl_err);
JwtError::OpenSSLError
})?;
// encrypter.pad(true);

// Feed in additional data to be checked. Must be called before update.
encrypter
Expand Down
6 changes: 0 additions & 6 deletions src/jwe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ impl Jwe {
pub fn from_json<'a, T: Deserialize<'a>>(&'a self) -> Result<T, serde_json::Error> {
serde_json::from_slice(self.payload())
}

/*
pub(crate) fn set_typ(&mut self, typ: Option<&str>) {
self.header.typ = typ.map(|s| s.to_string());
}
*/
}

#[cfg(all(feature = "openssl", test))]
Expand Down

0 comments on commit 21930b1

Please sign in to comment.