Bump dependency on openssl-src-rs

Brings in the first release with OpenSSL 1.1.1
This commit is contained in:
Alex Crichton 2018-10-15 21:54:03 -07:00
parent 8bd3ece403
commit dab71dbf0a
3 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,7 @@ libc = "0.2"
[build-dependencies] [build-dependencies]
pkg-config = "0.3.9" pkg-config = "0.3.9"
cc = "1.0" cc = "1.0"
openssl-src = { version = "110.0.4", optional = true } openssl-src = { version = "111.0.1", optional = true }
[target.'cfg(target_env = "msvc")'.build-dependencies] [target.'cfg(target_env = "msvc")'.build-dependencies]
vcpkg = "0.2" vcpkg = "0.2"

View File

@ -29,6 +29,7 @@ const DEFINES: &'static [&'static str] = &[
"OPENSSL_NO_SRP", "OPENSSL_NO_SRP",
"OPENSSL_NO_SSL3_METHOD", "OPENSSL_NO_SSL3_METHOD",
"OPENSSL_NO_TLSEXT", "OPENSSL_NO_TLSEXT",
"OPENSSL_NO_STDIO",
]; ];
enum Version { enum Version {

View File

@ -73,6 +73,7 @@ cfg_if! {
} }
} }
extern "C" { extern "C" {
#[cfg(not(osslconf = "OPENSSL_NO_STDIO"))]
pub fn BIO_new_fp(stream: *mut FILE, close_flag: c_int) -> *mut BIO; pub fn BIO_new_fp(stream: *mut FILE, close_flag: c_int) -> *mut BIO;
#[cfg(any(ossl110, libressl273))] #[cfg(any(ossl110, libressl273))]
pub fn BIO_set_data(a: *mut ::BIO, data: *mut c_void); pub fn BIO_set_data(a: *mut ::BIO, data: *mut c_void);