Skip to content

Commit

Permalink
Rename the openssl_sys crate through Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte committed Jan 1, 2021
1 parent c13d0a2 commit 9c78a72
Show file tree
Hide file tree
Showing 39 changed files with 2 additions and 42 deletions.
4 changes: 2 additions & 2 deletions openssl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ v102 = []
v110 = []
v111 = []

vendored = ['openssl-sys/vendored']
vendored = ['ffi/vendored']

[dependencies]
bitflags = "1.0"
Expand All @@ -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"
Expand Down
1 change: 0 additions & 1 deletion openssl/src/aes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
//! assert_eq!(&orig_key[..], &key_to_wrap[..]);
//! ```
//!
use ffi;
use libc::{c_int, c_uint};
use std::{mem, ptr};

Expand Down
1 change: 0 additions & 1 deletion openssl/src/asn1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
1 change: 0 additions & 1 deletion openssl/src/base64.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion openssl/src/bio.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use ffi;
use libc::c_int;
use std::marker::PhantomData;
use std::ptr;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/bn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/cms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion openssl/src/conf.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! Interface for processing OpenSSL configuration files.
use ffi;
use crate::cvt_p;
use crate::error::ErrorStack;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/derive.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! Shared secret derivation.
use ffi;
use foreign_types::ForeignTypeRef;
use std::marker::PhantomData;
use std::ptr;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/dh.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::error::ErrorStack;
use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use std::mem;
use std::ptr;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/dsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/ec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/ecdsa.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/envelope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions openssl/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion openssl/src/fips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down
1 change: 0 additions & 1 deletion openssl/src/hash.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use ffi;
use std::ffi::CString;
use std::fmt;
use std::io;
Expand Down
2 changes: 0 additions & 2 deletions openssl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion openssl/src/memcmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion openssl/src/nid.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! A collection of numerical identifiers for OpenSSL objects.
use ffi;
use libc::{c_char, c_int};

use std::ffi::CStr;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/ocsp.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use ffi;
use foreign_types::ForeignTypeRef;
use libc::{c_int, c_long, c_ulong};
use std::mem;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/pkcs12.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! PKCS #12 archives.
use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::c_int;
use std::ffi::CString;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/pkcs5.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use ffi;
use libc::c_int;
use std::ptr;

Expand Down
1 change: 0 additions & 1 deletion openssl/src/pkcs7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/pkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
//! }
//! ```
use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::{c_int, c_long};
use std::ffi::CString;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/rand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//! let mut buf = [0; 256];
//! rand_bytes(&mut buf).unwrap();
//! ```
use ffi;
use libc::c_int;

use crate::cvt;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/rsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/sha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
//! println!("Hash = {}", hex::encode(hash));
//! }
//! ```
use ffi;
use libc::c_void;
use std::mem;

Expand Down
1 change: 0 additions & 1 deletion openssl/src/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
1 change: 0 additions & 1 deletion openssl/src/srtp.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::stack::Stackable;
use ffi;
use foreign_types::ForeignTypeRef;
use libc::c_ulong;
use std::ffi::CStr;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/ssl/callbacks.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use ffi;
use foreign_types::ForeignType;
use foreign_types::ForeignTypeRef;
#[cfg(any(ossl111, not(osslconf = "OPENSSL_NO_PSK")))]
Expand Down
1 change: 0 additions & 1 deletion openssl/src/ssl/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use ffi;
use libc::c_int;
use std::error;
use std::error::Error as StdError;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/ssl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
1 change: 0 additions & 1 deletion openssl/src/stack.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use ffi;
use foreign_types::{ForeignType, ForeignTypeRef, Opaque};
use libc::c_int;
use std::borrow::Borrow;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/string.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use ffi;
use foreign_types::ForeignTypeRef;
use libc::{c_char, c_void};
use std::convert::AsRef;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/symm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
//! println!("Decrypted: '{}'", output_string);
//! ```
use ffi;
use libc::c_int;
use std::cmp;
use std::ptr;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/x509/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion openssl/src/x509/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
//! }
//! ```
use ffi;
use foreign_types::ForeignTypeRef;
use std::mem;

Expand Down
1 change: 0 additions & 1 deletion openssl/src/x509/verify.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use ffi;
use foreign_types::ForeignTypeRef;
use libc::{c_uint, c_ulong};
use std::net::IpAddr;
Expand Down

0 comments on commit 9c78a72

Please sign in to comment.