aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/hash.rs2
-rw-r--r--src/crypto/pkey.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/hash.rs b/src/crypto/hash.rs
index 6c9f33e4..4a4031e2 100644
--- a/src/crypto/hash.rs
+++ b/src/crypto/hash.rs
@@ -96,7 +96,7 @@ impl Hasher {
pub fn final(&self) -> Vec<u8> {
unsafe {
let mut res = Vec::from_elem(self.len, 0u8);
- EVP_DigestFinal(self.ctx, res.as_mut_ptr(), ptr::mut_null());
+ EVP_DigestFinal(self.ctx, res.as_mut_ptr(), ptr::null_mut());
res
}
}
diff --git a/src/crypto/pkey.rs b/src/crypto/pkey.rs
index 4eb9bf40..d4a98713 100644
--- a/src/crypto/pkey.rs
+++ b/src/crypto/pkey.rs
@@ -107,7 +107,7 @@ impl PKey {
fn _fromstr(&mut self, s: &[u8], f: unsafe extern "C" fn(*const *mut RSA, *const *const u8, c_uint) -> *mut RSA) {
unsafe {
- let rsa = ptr::mut_null();
+ let rsa = ptr::null_mut();
f(&rsa, &s.as_ptr(), s.len() as c_uint);
EVP_PKEY_set1_RSA(self.evp, rsa);
}