summaryrefslogtreecommitdiff
path: root/openssl/src/sign.rs
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2017-02-03 01:24:05 -0800
committerSteven Fackler <sfackler@gmail.com>2017-02-03 23:03:35 -0800
commit12ae31ad476d373ce93b4222d3875b9663f3da17 (patch)
tree6c3e0f158d3cf63e5ae8229126e3430847398ad3 /openssl/src/sign.rs
parent3ee2f4c64f4d1ca10c024ce9ee7ba0c66817d3eb (diff)
downloadrust-openssl-12ae31ad476d373ce93b4222d3875b9663f3da17.zip
Switch to foreign_types
Diffstat (limited to 'openssl/src/sign.rs')
-rw-r--r--openssl/src/sign.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/openssl/src/sign.rs b/openssl/src/sign.rs
index ac33bd07..279f294d 100644
--- a/openssl/src/sign.rs
+++ b/openssl/src/sign.rs
@@ -62,6 +62,7 @@
//! assert!(memcmp::eq(&hmac, &target));
//! ```
use ffi;
+use foreign_types::ForeignTypeRef;
use std::io::{self, Write};
use std::marker::PhantomData;
use std::ptr;
@@ -70,7 +71,6 @@ use {cvt, cvt_p};
use hash::MessageDigest;
use pkey::{PKeyRef, PKeyCtxRef};
use error::ErrorStack;
-use types::OpenSslTypeRef;
#[cfg(ossl110)]
use ffi::{EVP_MD_CTX_new, EVP_MD_CTX_free};
@@ -120,11 +120,11 @@ impl<'a> Signer<'a> {
}
pub fn pkey_ctx(&self) -> &PKeyCtxRef {
- unsafe { ::types::OpenSslTypeRef::from_ptr(self.pkey_ctx) }
+ unsafe { PKeyCtxRef::from_ptr(self.pkey_ctx) }
}
pub fn pkey_ctx_mut(&mut self) -> &mut PKeyCtxRef {
- unsafe { ::types::OpenSslTypeRef::from_ptr_mut(self.pkey_ctx) }
+ unsafe { PKeyCtxRef::from_ptr_mut(self.pkey_ctx) }
}
pub fn update(&mut self, buf: &[u8]) -> Result<(), ErrorStack> {
@@ -200,11 +200,11 @@ impl<'a> Verifier<'a> {
}
pub fn pkey_ctx(&self) -> &PKeyCtxRef {
- unsafe { ::types::OpenSslTypeRef::from_ptr(self.pkey_ctx) }
+ unsafe { PKeyCtxRef::from_ptr(self.pkey_ctx) }
}
pub fn pkey_ctx_mut(&mut self) -> &mut PKeyCtxRef {
- unsafe { ::types::OpenSslTypeRef::from_ptr_mut(self.pkey_ctx) }
+ unsafe { PKeyCtxRef::from_ptr_mut(self.pkey_ctx) }
}
pub fn update(&mut self, buf: &[u8]) -> Result<(), ErrorStack> {