aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkcs5.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkcs5.rs b/pkcs5.rs
index ed370b8c..366cd71a 100644
--- a/pkcs5.rs
+++ b/pkcs5.rs
@@ -1,5 +1,5 @@
use std::libc::c_int;
-use std::{vec,str};
+use std::vec;
#[link_args = "-lcrypto"]
#[abi = "cdecl"]
@@ -18,7 +18,7 @@ pub fn pbkdf2_hmac_sha1(pass: &str, salt: &[u8], iter: uint,
assert!(iter >= 1u);
assert!(keylen >= 1u);
- do str::as_buf(pass) |pass_buf, pass_len| {
+ do pass.as_imm_buf |pass_buf, pass_len| {
do salt.as_imm_buf |salt_buf, salt_len| {
let mut out = vec::with_capacity(keylen);