Skip to content

Commit

Permalink
add HasParams bound
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Dec 9, 2020
1 parent 134a9de commit fbfe7c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openssl/src/dh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ impl Dh<Params> {
}
}

impl<T> Dh<T> {
impl<T> Dh<T>
where
T: HasParams,
{
/// Returns the prime `p` from the DH instance.
///
/// This corresponds to [`DH_get0_pqg`].
Expand Down

0 comments on commit fbfe7c1

Please sign in to comment.