Skip to content

Commit

Permalink
Remove DH_generate_parameters for LibreSSL 3.8.2
Browse files Browse the repository at this point in the history
OpenSSL 0.9.8 deprecated DH_generate_parameters nearly 20 years ago.
In 62acbe3 internals switched to using the _ex version. Let's
remove it from the API surface consumed from LibreSSL so we can
eventually remove it on our side and finally make some long overdue
internal simplifications.
  • Loading branch information
botovq committed Oct 21, 2023
1 parent 6568376 commit a4f2a38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openssl-sys/src/handwritten/dh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ extern "C" {
pub fn DH_free(dh: *mut DH);
pub fn DH_check(dh: *const DH, codes: *mut c_int) -> c_int;

#[cfg(not(libressl382))]
pub fn DH_generate_parameters(
prime_len: c_int,
generator: c_int,
Expand Down

0 comments on commit a4f2a38

Please sign in to comment.