aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorTomoki Aonuma <[email protected]>2015-12-10 21:24:58 +0900
committerTomoki Aonuma <[email protected]>2015-12-10 23:00:49 +0900
commitb6647cc61099eb99747168fb99abe29f88a87b34 (patch)
tree62353a935963947a2a3ea39c865a2556d4ef1c58 /openssl-sys/src
parentAdd PBKDF2-HMAC-SHA256 and -SHA512 functions (diff)
downloadrust-openssl-b6647cc61099eb99747168fb99abe29f88a87b34.tar.xz
rust-openssl-b6647cc61099eb99747168fb99abe29f88a87b34.zip
Put pbkdf2_hmac_{256,512}() behind feature gate
PKCS5_PBKDF2_HMAC is not available with openssl-0.9.8 on os x
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index f9f47d5e..2a9e9e4f 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -478,6 +478,7 @@ extern "C" {
salt: *const u8, saltlen: c_int,
iter: c_int, keylen: c_int,
out: *mut u8) -> c_int;
+ #[cfg(feature = "pkcs5_pbkdf2_hmac")]
pub fn PKCS5_PBKDF2_HMAC(pass: *const u8, passlen: c_int,
salt: *const u8, saltlen: c_int,
iter: c_int, digest: *const EVP_MD, keylen: c_int,