diff options
| author | Steven Fackler <[email protected]> | 2017-02-04 08:54:25 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-02-04 08:54:25 -0800 |
| commit | 084cf3c66b7cc3d24cb23d2bb548fa0fa4ee040a (patch) | |
| tree | 6c3e0f158d3cf63e5ae8229126e3430847398ad3 /openssl/src/sign.rs | |
| parent | Merge pull request #571 from sfackler/build-script-cleanup (diff) | |
| parent | Switch to foreign_types (diff) | |
| download | rust-openssl-084cf3c66b7cc3d24cb23d2bb548fa0fa4ee040a.tar.xz rust-openssl-084cf3c66b7cc3d24cb23d2bb548fa0fa4ee040a.zip | |
Merge pull request #572 from sfackler/foreign-types
Switch to foreign_types
Diffstat (limited to 'openssl/src/sign.rs')
| -rw-r--r-- | openssl/src/sign.rs | 10 |
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> { |