Loading openssl/src/ssl/mod.rs +1 −2 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ //! } //! ``` use ffi; use foreign_types::{ForeignType, ForeignTypeRef}; use foreign_types::{ForeignType, ForeignTypeRef, Opaque}; use libc::{c_int, c_void, c_long, c_ulong}; use libc::{c_uchar, c_uint}; use std::any::Any; Loading Loading @@ -107,7 +107,6 @@ use verify::X509VerifyParamRef; use pkey::PKeyRef; use error::ErrorStack; use ex_data::Index; use util::Opaque; use stack::{Stack, StackRef}; use ssl::bio::BioMethod; use ssl::callbacks::*; Loading openssl/src/stack.rs +1 −3 Original line number Diff line number Diff line use foreign_types::{ForeignTypeRef, ForeignType}; use foreign_types::{ForeignTypeRef, ForeignType, Opaque}; use libc::c_int; use std::borrow::Borrow; use std::convert::AsRef; Loading @@ -11,8 +11,6 @@ use {cvt, cvt_p}; use error::ErrorStack; use std::ops::{Deref, DerefMut, Index, IndexMut}; use util::Opaque; #[cfg(ossl10x)] use ffi::{sk_pop as OPENSSL_sk_pop, sk_free as OPENSSL_sk_free, sk_num as OPENSSL_sk_num, sk_value as OPENSSL_sk_value, _STACK as OPENSSL_STACK, Loading openssl/src/symm.rs +4 −8 Original line number Diff line number Diff line Loading @@ -358,10 +358,8 @@ impl Drop for Crypter { } } #[doc = /** * Encrypts data, using the specified crypter type in encrypt mode with the * specified key and iv; returns the resulting (encrypted) data. */] /// Encrypts data, using the specified crypter type in encrypt mode with the /// specified key and iv; returns the resulting (encrypted) data. pub fn encrypt( t: Cipher, key: &[u8], Loading @@ -371,10 +369,8 @@ pub fn encrypt( cipher(t, Mode::Encrypt, key, iv, data) } #[doc = /** * Decrypts data, using the specified crypter type in decrypt mode with the * specified key and iv; returns the resulting (decrypted) data. */] /// Decrypts data, using the specified crypter type in decrypt mode with the /// specified key and iv; returns the resulting (decrypted) data. pub fn decrypt( t: Cipher, key: &[u8], Loading openssl/src/util.rs +0 −5 Original line number Diff line number Diff line Loading @@ -91,8 +91,3 @@ where } } } /// This is intended to be used as the inner type for `FooRef` types converted from raw C pointers. /// It has an `UnsafeCell` internally to inform the compiler about aliasability and doesn't /// implement `Copy`, so it can't be dereferenced. pub struct Opaque(UnsafeCell<()>); Loading
openssl/src/ssl/mod.rs +1 −2 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ //! } //! ``` use ffi; use foreign_types::{ForeignType, ForeignTypeRef}; use foreign_types::{ForeignType, ForeignTypeRef, Opaque}; use libc::{c_int, c_void, c_long, c_ulong}; use libc::{c_uchar, c_uint}; use std::any::Any; Loading Loading @@ -107,7 +107,6 @@ use verify::X509VerifyParamRef; use pkey::PKeyRef; use error::ErrorStack; use ex_data::Index; use util::Opaque; use stack::{Stack, StackRef}; use ssl::bio::BioMethod; use ssl::callbacks::*; Loading
openssl/src/stack.rs +1 −3 Original line number Diff line number Diff line use foreign_types::{ForeignTypeRef, ForeignType}; use foreign_types::{ForeignTypeRef, ForeignType, Opaque}; use libc::c_int; use std::borrow::Borrow; use std::convert::AsRef; Loading @@ -11,8 +11,6 @@ use {cvt, cvt_p}; use error::ErrorStack; use std::ops::{Deref, DerefMut, Index, IndexMut}; use util::Opaque; #[cfg(ossl10x)] use ffi::{sk_pop as OPENSSL_sk_pop, sk_free as OPENSSL_sk_free, sk_num as OPENSSL_sk_num, sk_value as OPENSSL_sk_value, _STACK as OPENSSL_STACK, Loading
openssl/src/symm.rs +4 −8 Original line number Diff line number Diff line Loading @@ -358,10 +358,8 @@ impl Drop for Crypter { } } #[doc = /** * Encrypts data, using the specified crypter type in encrypt mode with the * specified key and iv; returns the resulting (encrypted) data. */] /// Encrypts data, using the specified crypter type in encrypt mode with the /// specified key and iv; returns the resulting (encrypted) data. pub fn encrypt( t: Cipher, key: &[u8], Loading @@ -371,10 +369,8 @@ pub fn encrypt( cipher(t, Mode::Encrypt, key, iv, data) } #[doc = /** * Decrypts data, using the specified crypter type in decrypt mode with the * specified key and iv; returns the resulting (decrypted) data. */] /// Decrypts data, using the specified crypter type in decrypt mode with the /// specified key and iv; returns the resulting (decrypted) data. pub fn decrypt( t: Cipher, key: &[u8], Loading
openssl/src/util.rs +0 −5 Original line number Diff line number Diff line Loading @@ -91,8 +91,3 @@ where } } } /// This is intended to be used as the inner type for `FooRef` types converted from raw C pointers. /// It has an `UnsafeCell` internally to inform the compiler about aliasability and doesn't /// implement `Copy`, so it can't be dereferenced. pub struct Opaque(UnsafeCell<()>);