aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/dh.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2017-08-08 22:01:58 -0700
committerSteven Fackler <[email protected]>2017-08-08 22:01:58 -0700
commitbe1b573f6b2968f0df35efe4564565f399bd2e4b (patch)
tree45df5c9014f76bc8ea8d48f2aa050b78c4a9f4cf /openssl/src/dh.rs
parentMerge pull request #674 from bradleybeddoes/add-ec-functions (diff)
downloadrust-openssl-be1b573f6b2968f0df35efe4564565f399bd2e4b.tar.xz
rust-openssl-be1b573f6b2968f0df35efe4564565f399bd2e4b.zip
Delete DTLS tests
Diffstat (limited to 'openssl/src/dh.rs')
-rw-r--r--openssl/src/dh.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/openssl/src/dh.rs b/openssl/src/dh.rs
index 09d286f9..6dd97844 100644
--- a/openssl/src/dh.rs
+++ b/openssl/src/dh.rs
@@ -4,7 +4,7 @@ use foreign_types::ForeignTypeRef;
use std::mem;
use std::ptr;
-use {cvt, cvt_p, init};
+use {cvt, cvt_p};
use bn::BigNum;
foreign_type! {
@@ -43,7 +43,7 @@ impl Dh {
#[cfg(any(all(feature = "v102", ossl102), all(feature = "v110", ossl110)))]
pub fn get_1024_160() -> Result<Dh, ErrorStack> {
unsafe {
- init();
+ ffi::init();
cvt_p(ffi::DH_get_1024_160()).map(Dh)
}
}
@@ -52,7 +52,7 @@ impl Dh {
#[cfg(any(all(feature = "v102", ossl102), all(feature = "v110", ossl110)))]
pub fn get_2048_224() -> Result<Dh, ErrorStack> {
unsafe {
- init();
+ ffi::init();
cvt_p(ffi::DH_get_2048_224()).map(Dh)
}
}
@@ -61,7 +61,7 @@ impl Dh {
#[cfg(any(all(feature = "v102", ossl102), all(feature = "v110", ossl110)))]
pub fn get_2048_256() -> Result<Dh, ErrorStack> {
unsafe {
- init();
+ ffi::init();
cvt_p(ffi::DH_get_2048_256()).map(Dh)
}
}