aboutsummaryrefslogtreecommitdiff
path: root/pkcs5.rs
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2012-10-02 16:00:06 -0700
committerBrian Anderson <[email protected]>2012-10-02 16:00:06 -0700
commit39cd493434a4ff0a3fd7e82720b0b7015abb62bc (patch)
treeb36fb8f0654d2d240a4b3b2c96e9abdb4b709002 /pkcs5.rs
parentUpdate to rust HEAD (diff)
downloadrust-openssl-39cd493434a4ff0a3fd7e82720b0b7015abb62bc.tar.xz
rust-openssl-39cd493434a4ff0a3fd7e82720b0b7015abb62bc.zip
Update for language changes
Diffstat (limited to 'pkcs5.rs')
-rw-r--r--pkcs5.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkcs5.rs b/pkcs5.rs
index e5438ea7..8ce32c54 100644
--- a/pkcs5.rs
+++ b/pkcs5.rs
@@ -29,10 +29,10 @@ pub fn pbkdf2_hmac_sha1(pass: &str, salt: &[u8], iter: uint,
out_buf);
if r != 1 as c_int { fail; }
-
- unsafe { vec::raw::set_len(out, keylen); }
}
+ unsafe { vec::raw::set_len(&mut out, keylen); }
+
out
}
}