From 6802216f79cb7fffa48bc10daa8c5d0d8a6a63f9 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 17 Sep 2014 17:21:17 +0200 Subject: Update for rust rfc 52 changes --- src/crypto/hash.rs | 2 +- src/crypto/pkey.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crypto') 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 { 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); } -- cgit v1.2.3