aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/pkey.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/pkey.rs b/crypto/pkey.rs
index 1fd88061..6c0b4e83 100644
--- a/crypto/pkey.rs
+++ b/crypto/pkey.rs
@@ -1,6 +1,6 @@
-use std::cast;
use libc::{c_char, c_int, c_uint};
use libc;
+use std::mem;
use std::ptr;
use crypto::hash::{HashType, MD5, SHA1, SHA224, SHA256, SHA384, SHA512};
@@ -123,7 +123,7 @@ impl PKey {
EVP_PKEY_assign(
self.evp,
6 as c_int,
- cast::transmute(rsa));
+ mem::transmute(rsa));
self.parts = Both;
}