summaryrefslogtreecommitdiff
path: root/openssl
diff options
context:
space:
mode:
authorJonas Platte <jplatte+git@posteo.de>2020-12-31 20:02:51 +0100
committerJonas Platte <jplatte+git@posteo.de>2021-01-01 04:11:48 +0100
commit9c78a724bf1902af62d81ad7863c0e76bf062474 (patch)
tree3a85457c2fb7ca9a623db9942d59d85ad9db9ece /openssl
parentc13d0a21077127fbd4e2a84a2c8ec9830f0f3147 (diff)
downloadrust-openssl-9c78a724bf1902af62d81ad7863c0e76bf062474.zip
Rename the openssl_sys crate through Cargo.toml
Diffstat (limited to 'openssl')
-rw-r--r--openssl/Cargo.toml4
-rw-r--r--openssl/src/aes.rs1
-rw-r--r--openssl/src/asn1.rs1
-rw-r--r--openssl/src/base64.rs1
-rw-r--r--openssl/src/bio.rs1
-rw-r--r--openssl/src/bn.rs1
-rw-r--r--openssl/src/cms.rs1
-rw-r--r--openssl/src/conf.rs1
-rw-r--r--openssl/src/derive.rs1
-rw-r--r--openssl/src/dh.rs1
-rw-r--r--openssl/src/dsa.rs1
-rw-r--r--openssl/src/ec.rs1
-rw-r--r--openssl/src/ecdsa.rs1
-rw-r--r--openssl/src/envelope.rs1
-rw-r--r--openssl/src/error.rs2
-rw-r--r--openssl/src/fips.rs1
-rw-r--r--openssl/src/hash.rs1
-rw-r--r--openssl/src/lib.rs2
-rw-r--r--openssl/src/memcmp.rs1
-rw-r--r--openssl/src/nid.rs1
-rw-r--r--openssl/src/ocsp.rs1
-rw-r--r--openssl/src/pkcs12.rs1
-rw-r--r--openssl/src/pkcs5.rs1
-rw-r--r--openssl/src/pkcs7.rs1
-rw-r--r--openssl/src/pkey.rs1
-rw-r--r--openssl/src/rand.rs1
-rw-r--r--openssl/src/rsa.rs1
-rw-r--r--openssl/src/sha.rs1
-rw-r--r--openssl/src/sign.rs1
-rw-r--r--openssl/src/srtp.rs1
-rw-r--r--openssl/src/ssl/callbacks.rs1
-rw-r--r--openssl/src/ssl/error.rs1
-rw-r--r--openssl/src/ssl/mod.rs1
-rw-r--r--openssl/src/stack.rs1
-rw-r--r--openssl/src/string.rs1
-rw-r--r--openssl/src/symm.rs1
-rw-r--r--openssl/src/x509/mod.rs1
-rw-r--r--openssl/src/x509/store.rs1
-rw-r--r--openssl/src/x509/verify.rs1
39 files changed, 2 insertions, 42 deletions
diff --git a/openssl/Cargo.toml b/openssl/Cargo.toml
index b3e0e334..76616e78 100644
--- a/openssl/Cargo.toml
+++ b/openssl/Cargo.toml
@@ -17,7 +17,7 @@ v102 = []
v110 = []
v111 = []
-vendored = ['openssl-sys/vendored']
+vendored = ['ffi/vendored']
[dependencies]
bitflags = "1.0"
@@ -26,7 +26,7 @@ foreign-types = "0.3.1"
libc = "0.2"
once_cell = "1.5.2"
-openssl-sys = { version = "0.9.60", path = "../openssl-sys" }
+ffi = { package = "openssl-sys", version = "0.9.60", path = "../openssl-sys" }
[dev-dependencies]
tempdir = "0.3"
diff --git a/openssl/src/aes.rs b/openssl/src/aes.rs
index e4a626bd..a4af8d45 100644
--- a/openssl/src/aes.rs
+++ b/openssl/src/aes.rs
@@ -55,7 +55,6 @@
//! assert_eq!(&orig_key[..], &key_to_wrap[..]);
//! ```
//!
-use ffi;
use libc::{c_int, c_uint};
use std::{mem, ptr};
diff --git a/openssl/src/asn1.rs b/openssl/src/asn1.rs
index 758a5d9d..b7ae2031 100644
--- a/openssl/src/asn1.rs
+++ b/openssl/src/asn1.rs
@@ -24,7 +24,6 @@
//! use openssl::asn1::Asn1Time;
//! let tomorrow = Asn1Time::days_from_now(1);
//! ```
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::{c_char, c_int, c_long, time_t};
#[cfg(ossl102)]
diff --git a/openssl/src/base64.rs b/openssl/src/base64.rs
index 818163a2..b27594f1 100644
--- a/openssl/src/base64.rs
+++ b/openssl/src/base64.rs
@@ -1,7 +1,6 @@
//! Base64 encoding support.
use crate::cvt_n;
use crate::error::ErrorStack;
-use ffi;
use libc::c_int;
/// Encodes a slice of bytes to a base64 string.
diff --git a/openssl/src/bio.rs b/openssl/src/bio.rs
index c4cbd44d..3037fcfd 100644
--- a/openssl/src/bio.rs
+++ b/openssl/src/bio.rs
@@ -1,4 +1,3 @@
-use ffi;
use libc::c_int;
use std::marker::PhantomData;
use std::ptr;
diff --git a/openssl/src/bn.rs b/openssl/src/bn.rs
index 7a5484e3..88f009e1 100644
--- a/openssl/src/bn.rs
+++ b/openssl/src/bn.rs
@@ -22,7 +22,6 @@
//! ```
//!
//! [`BIGNUM`]: https://wiki.openssl.org/index.php/Manual:Bn_internal(3)
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::c_int;
use std::cmp::Ordering;
diff --git a/openssl/src/cms.rs b/openssl/src/cms.rs
index 154fcbf0..91ae21b2 100644
--- a/openssl/src/cms.rs
+++ b/openssl/src/cms.rs
@@ -5,7 +5,6 @@
//! generated from a `Vec` of bytes. This `Vec` follows the smime protocol standards.
//! Data accepted by this module will be smime type `enveloped-data`.
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use std::ptr;
diff --git a/openssl/src/conf.rs b/openssl/src/conf.rs
index 9eb6977a..ef6c6aa5 100644
--- a/openssl/src/conf.rs
+++ b/openssl/src/conf.rs
@@ -1,5 +1,4 @@
//! Interface for processing OpenSSL configuration files.
-use ffi;
use crate::cvt_p;
use crate::error::ErrorStack;
diff --git a/openssl/src/derive.rs b/openssl/src/derive.rs
index 3bd48f3f..51afe932 100644
--- a/openssl/src/derive.rs
+++ b/openssl/src/derive.rs
@@ -1,5 +1,4 @@
//! Shared secret derivation.
-use ffi;
use foreign_types::ForeignTypeRef;
use std::marker::PhantomData;
use std::ptr;
diff --git a/openssl/src/dh.rs b/openssl/src/dh.rs
index 11ea99f8..ceae8d0b 100644
--- a/openssl/src/dh.rs
+++ b/openssl/src/dh.rs
@@ -1,5 +1,4 @@
use crate::error::ErrorStack;
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use std::mem;
use std::ptr;
diff --git a/openssl/src/dsa.rs b/openssl/src/dsa.rs
index 11fece79..5f6ab1c7 100644
--- a/openssl/src/dsa.rs
+++ b/openssl/src/dsa.rs
@@ -5,7 +5,6 @@
//! using the private key that can be validated with the public key but not be generated
//! without the private key.
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::c_int;
use std::fmt;
diff --git a/openssl/src/ec.rs b/openssl/src/ec.rs
index 8218d65e..efbc26f6 100644
--- a/openssl/src/ec.rs
+++ b/openssl/src/ec.rs
@@ -15,7 +15,6 @@
//! [`EcGroup`]: struct.EcGroup.html
//! [`Nid`]: ../nid/struct.Nid.html
//! [Eliptic Curve Cryptography]: https://wiki.openssl.org/index.php/Elliptic_Curve_Cryptography
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::c_int;
use std::fmt;
diff --git a/openssl/src/ecdsa.rs b/openssl/src/ecdsa.rs
index b08c2e5a..7773f9ab 100644
--- a/openssl/src/ecdsa.rs
+++ b/openssl/src/ecdsa.rs
@@ -1,6 +1,5 @@
//! Low level Elliptic Curve Digital Signature Algorithm (ECDSA) functions.
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::c_int;
use std::mem;
diff --git a/openssl/src/envelope.rs b/openssl/src/envelope.rs
index d9d103e0..887e9cf7 100644
--- a/openssl/src/envelope.rs
+++ b/openssl/src/envelope.rs
@@ -30,7 +30,6 @@ use crate::error::ErrorStack;
use crate::pkey::{HasPrivate, HasPublic, PKey, PKeyRef};
use crate::symm::Cipher;
use crate::{cvt, cvt_p};
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::c_int;
use std::cmp;
diff --git a/openssl/src/error.rs b/openssl/src/error.rs
index 0fc5d015..cec39225 100644
--- a/openssl/src/error.rs
+++ b/openssl/src/error.rs
@@ -24,8 +24,6 @@ use std::io;
use std::ptr;
use std::str;
-use ffi;
-
/// Collection of [`Error`]s from OpenSSL.
///
/// [`Error`]: struct.Error.html
diff --git a/openssl/src/fips.rs b/openssl/src/fips.rs
index a10af0d6..e6a2a4be 100644
--- a/openssl/src/fips.rs
+++ b/openssl/src/fips.rs
@@ -5,7 +5,6 @@
//! [OpenSSL's documentation]: https://www.openssl.org/docs/fips/UserGuide-2.0.pdf
use crate::cvt;
use crate::error::ErrorStack;
-use ffi;
/// Moves the library into or out of the FIPS 140-2 mode of operation.
///
diff --git a/openssl/src/hash.rs b/openssl/src/hash.rs
index 05f81019..23a1e5f2 100644
--- a/openssl/src/hash.rs
+++ b/openssl/src/hash.rs
@@ -1,4 +1,3 @@
-use ffi;
use std::ffi::CString;
use std::fmt;
use std::io;
diff --git a/openssl/src/lib.rs b/openssl/src/lib.rs
index ca2cfc52..d1e3af49 100644
--- a/openssl/src/lib.rs
+++ b/openssl/src/lib.rs
@@ -118,8 +118,6 @@ extern crate cfg_if;
#[macro_use]
extern crate foreign_types;
-extern crate openssl_sys as ffi;
-
#[cfg(test)]
extern crate hex;
diff --git a/openssl/src/memcmp.rs b/openssl/src/memcmp.rs
index 3b7bf3b2..97b36302 100644
--- a/openssl/src/memcmp.rs
+++ b/openssl/src/memcmp.rs
@@ -29,7 +29,6 @@
//! assert!(!eq(&a, &b));
//! assert!(!eq(&a, &c));
//! ```
-use ffi;
use libc::size_t;
/// Returns `true` iff `a` and `b` contain the same bytes.
diff --git a/openssl/src/nid.rs b/openssl/src/nid.rs
index dde62282..8545666c 100644
--- a/openssl/src/nid.rs
+++ b/openssl/src/nid.rs
@@ -1,5 +1,4 @@
//! A collection of numerical identifiers for OpenSSL objects.
-use ffi;
use libc::{c_char, c_int};
use std::ffi::CStr;
diff --git a/openssl/src/ocsp.rs b/openssl/src/ocsp.rs
index 861e3bbe..1a37cd9b 100644
--- a/openssl/src/ocsp.rs
+++ b/openssl/src/ocsp.rs
@@ -1,4 +1,3 @@
-use ffi;
use foreign_types::ForeignTypeRef;
use libc::{c_int, c_long, c_ulong};
use std::mem;
diff --git a/openssl/src/pkcs12.rs b/openssl/src/pkcs12.rs
index 4e61d291..eb552ea0 100644
--- a/openssl/src/pkcs12.rs
+++ b/openssl/src/pkcs12.rs
@@ -1,6 +1,5 @@
//! PKCS #12 archives.
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::c_int;
use std::ffi::CString;
diff --git a/openssl/src/pkcs5.rs b/openssl/src/pkcs5.rs
index 370db4da..823ce965 100644
--- a/openssl/src/pkcs5.rs
+++ b/openssl/src/pkcs5.rs
@@ -1,4 +1,3 @@
-use ffi;
use libc::c_int;
use std::ptr;
diff --git a/openssl/src/pkcs7.rs b/openssl/src/pkcs7.rs
index 0541629b..9717727e 100644
--- a/openssl/src/pkcs7.rs
+++ b/openssl/src/pkcs7.rs
@@ -6,7 +6,6 @@ use crate::symm::Cipher;
use crate::x509::store::X509StoreRef;
use crate::x509::{X509Ref, X509};
use crate::{cvt, cvt_p};
-use ffi;
use foreign_types::ForeignTypeRef;
use libc::c_int;
use std::ptr;
diff --git a/openssl/src/pkey.rs b/openssl/src/pkey.rs
index 8c9c6999..c10e03b7 100644
--- a/openssl/src/pkey.rs
+++ b/openssl/src/pkey.rs
@@ -45,7 +45,6 @@
//! }
//! ```
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::{c_int, c_long};
use std::ffi::CString;
diff --git a/openssl/src/rand.rs b/openssl/src/rand.rs
index 36421485..0cd2a16a 100644
--- a/openssl/src/rand.rs
+++ b/openssl/src/rand.rs
@@ -10,7 +10,6 @@
//! let mut buf = [0; 256];
//! rand_bytes(&mut buf).unwrap();
//! ```
-use ffi;
use libc::c_int;
use crate::cvt;
diff --git a/openssl/src/rsa.rs b/openssl/src/rsa.rs
index 8ff9965e..f683667f 100644
--- a/openssl/src/rsa.rs
+++ b/openssl/src/rsa.rs
@@ -28,7 +28,6 @@
//! let encrypted_len = rsa.public_encrypt(data, &mut buf, Padding::PKCS1).unwrap();
//! }
//! ```
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::c_int;
use std::fmt;
diff --git a/openssl/src/sha.rs b/openssl/src/sha.rs
index 232ad856..428a51f9 100644
--- a/openssl/src/sha.rs
+++ b/openssl/src/sha.rs
@@ -45,7 +45,6 @@
//! println!("Hash = {}", hex::encode(hash));
//! }
//! ```
-use ffi;
use libc::c_void;
use std::mem;
diff --git a/openssl/src/sign.rs b/openssl/src/sign.rs
index 72438b6b..df42aa0e 100644
--- a/openssl/src/sign.rs
+++ b/openssl/src/sign.rs
@@ -61,7 +61,6 @@
//! # let target = hmac.clone();
//! assert!(memcmp::eq(&hmac, &target));
//! ```
-use ffi;
use foreign_types::ForeignTypeRef;
use libc::c_int;
use std::io::{self, Write};
diff --git a/openssl/src/srtp.rs b/openssl/src/srtp.rs
index b60fea57..348aff3a 100644
--- a/openssl/src/srtp.rs
+++ b/openssl/src/srtp.rs
@@ -1,5 +1,4 @@
use crate::stack::Stackable;
-use ffi;
use foreign_types::ForeignTypeRef;
use libc::c_ulong;
use std::ffi::CStr;
diff --git a/openssl/src/ssl/callbacks.rs b/openssl/src/ssl/callbacks.rs
index e19a2673..333b60a6 100644
--- a/openssl/src/ssl/callbacks.rs
+++ b/openssl/src/ssl/callbacks.rs
@@ -1,4 +1,3 @@
-use ffi;
use foreign_types::ForeignType;
use foreign_types::ForeignTypeRef;
#[cfg(any(ossl111, not(osslconf = "OPENSSL_NO_PSK")))]
diff --git a/openssl/src/ssl/error.rs b/openssl/src/ssl/error.rs
index 5ec3e56a..55658335 100644
--- a/openssl/src/ssl/error.rs
+++ b/openssl/src/ssl/error.rs
@@ -1,4 +1,3 @@
-use ffi;
use libc::c_int;
use std::error;
use std::error::Error as StdError;
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 2328106c..e60c4bee 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -57,7 +57,6 @@
//! }
//! }
//! ```
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef, Opaque};
use libc::{c_char, c_int, c_long, c_uchar, c_uint, c_ulong, c_void};
use once_cell::sync::{Lazy, OnceCell};
diff --git a/openssl/src/stack.rs b/openssl/src/stack.rs
index e5f32c77..a4936fc5 100644
--- a/openssl/src/stack.rs
+++ b/openssl/src/stack.rs
@@ -1,4 +1,3 @@
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef, Opaque};
use libc::c_int;
use std::borrow::Borrow;
diff --git a/openssl/src/string.rs b/openssl/src/string.rs
index 5dd1f1ae..bca53a1b 100644
--- a/openssl/src/string.rs
+++ b/openssl/src/string.rs
@@ -1,4 +1,3 @@
-use ffi;
use foreign_types::ForeignTypeRef;
use libc::{c_char, c_void};
use std::convert::AsRef;
diff --git a/openssl/src/symm.rs b/openssl/src/symm.rs
index 9b900073..cf0974cc 100644
--- a/openssl/src/symm.rs
+++ b/openssl/src/symm.rs
@@ -52,7 +52,6 @@
//! println!("Decrypted: '{}'", output_string);
//! ```
-use ffi;
use libc::c_int;
use std::cmp;
use std::ptr;
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs
index b982be43..2559c593 100644
--- a/openssl/src/x509/mod.rs
+++ b/openssl/src/x509/mod.rs
@@ -7,7 +7,6 @@
//! Internet protocols, including SSL/TLS, which is the basis for HTTPS,
//! the secure protocol for browsing the web.
-use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::{c_int, c_long};
use std::error::Error;
diff --git a/openssl/src/x509/store.rs b/openssl/src/x509/store.rs
index 2b7a74a3..ee1aeae7 100644
--- a/openssl/src/x509/store.rs
+++ b/openssl/src/x509/store.rs
@@ -40,7 +40,6 @@
//! }
//! ```
-use ffi;
use foreign_types::ForeignTypeRef;
use std::mem;
diff --git a/openssl/src/x509/verify.rs b/openssl/src/x509/verify.rs
index 74911ab9..a19b725b 100644
--- a/openssl/src/x509/verify.rs
+++ b/openssl/src/x509/verify.rs
@@ -1,4 +1,3 @@
-use ffi;
use foreign_types::ForeignTypeRef;
use libc::{c_uint, c_ulong};
use std::net::IpAddr;