diff options
author | Christoph Walcher <christoph-wa@gmx.de> | 2020-10-07 15:05:21 +0200 |
---|---|---|
committer | Christoph Walcher <christoph-wa@gmx.de> | 2020-10-08 15:41:43 +0200 |
commit | 22a2f49873bbd3f9963f42dc445940c92b530abd (patch) | |
tree | 76be333a8c545f341d8e2429473f82ff3bae005a /openssl-sys | |
parent | c4d77d03d6d72dd8e3a370cf0093ad6e7b0432cc (diff) | |
download | rust-openssl-22a2f49873bbd3f9963f42dc445940c92b530abd.zip |
implement better prime handling
implement better prime handling
Diffstat (limited to 'openssl-sys')
-rw-r--r-- | openssl-sys/src/dh.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openssl-sys/src/dh.rs b/openssl-sys/src/dh.rs index 5b316b92..af812d43 100644 --- a/openssl-sys/src/dh.rs +++ b/openssl-sys/src/dh.rs @@ -27,7 +27,15 @@ extern "C" { #[cfg(any(ossl110, libressl273))] pub fn DH_set0_pqg(dh: *mut DH, p: *mut BIGNUM, q: *mut BIGNUM, g: *mut BIGNUM) -> c_int; + #[cfg(any(ossl110, libressl273))] + pub fn DH_get0_pqg( + dh: *const DH, + p: *mut *const BIGNUM, + q: *mut *const BIGNUM, + g: *mut *const BIGNUM, + ); #[cfg(ossl102)] pub fn DH_get0_key(dh: *const DH, pub_key: *mut *const BIGNUM, priv_key: *mut *const BIGNUM); + } |