Skip to content

Commit

Permalink
mbedtls pk dhparam clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijs Kwakkel committed Sep 17, 2024
1 parent 7ddc627 commit 825d86f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mbedtls/src/pk/dhparam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl Dhm {
/// Takes both DER and PEM forms of FFDH parameters in `DHParams` format.
///
/// When calling on PEM-encoded data, `params` must be NULL-terminated
pub fn from_params(params: &[u8]) -> Result<Dhm> {
pub fn from_params(params: &[u8]) -> Result<Self> {
let mut ret = Self::init();
unsafe { dhm_parse_dhm(&mut ret.inner, params.as_ptr(), params.len()) }.into_result()?;
Ok(ret)
Expand Down

0 comments on commit 825d86f

Please sign in to comment.