Loading openssl-sys/build/find_vendored.rs +4 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,10 @@ use std::path::PathBuf; pub fn get_openssl(_target: &str) -> (PathBuf, PathBuf) { let artifacts = openssl_src::Build::new().build(); println!("cargo:vendored=1"); println!("cargo:root={}", artifacts.lib_dir().parent().unwrap().display()); println!( "cargo:root={}", artifacts.lib_dir().parent().unwrap().display() ); ( artifacts.lib_dir().to_path_buf(), Loading openssl-sys/build/main.rs +1 −1 Original line number Diff line number Diff line extern crate autocfg; extern crate cc; #[cfg(feature = "vendored")] extern crate openssl_src; extern crate pkg_config; extern crate autocfg; #[cfg(target_env = "msvc")] extern crate vcpkg; Loading openssl-sys/src/asn1.rs +6 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,12 @@ extern "C" { pub fn ASN1_GENERALIZEDTIME_print(b: *mut BIO, tm: *const ASN1_GENERALIZEDTIME) -> c_int; pub fn ASN1_TIME_new() -> *mut ASN1_TIME; #[cfg(ossl102)] pub fn ASN1_TIME_diff(pday: *mut c_int, psec: *mut c_int, from: *const ASN1_TIME, to: *const ASN1_TIME) -> c_int; pub fn ASN1_TIME_diff( pday: *mut c_int, psec: *mut c_int, from: *const ASN1_TIME, to: *const ASN1_TIME, ) -> c_int; pub fn ASN1_TIME_free(tm: *mut ASN1_TIME); pub fn ASN1_TIME_print(b: *mut BIO, tm: *const ASN1_TIME) -> c_int; pub fn ASN1_TIME_set(from: *mut ASN1_TIME, to: time_t) -> *mut ASN1_TIME; Loading openssl-sys/src/cms.rs +6 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,11 @@ extern "C" { pub fn i2d_CMS_ContentInfo(a: *mut ::CMS_ContentInfo, pp: *mut *mut c_uchar) -> c_int; #[cfg(ossl101)] pub fn d2i_CMS_ContentInfo(a: *mut *mut ::CMS_ContentInfo, pp: *mut *const c_uchar, length: c_long) -> *mut ::CMS_ContentInfo; pub fn d2i_CMS_ContentInfo( a: *mut *mut ::CMS_ContentInfo, pp: *mut *const c_uchar, length: c_long, ) -> *mut ::CMS_ContentInfo; } #[cfg(ossl101)] Loading Loading @@ -76,7 +80,7 @@ extern "C" { certs: *mut stack_st_X509, data: *mut ::BIO, cipher: *const EVP_CIPHER, flags: c_uint flags: c_uint, ) -> *mut ::CMS_ContentInfo; #[cfg(ossl101)] Loading openssl-sys/src/ec.rs +1 −4 Original line number Diff line number Diff line Loading @@ -85,10 +85,7 @@ extern "C" { pub fn EC_POINT_free(point: *mut EC_POINT); pub fn EC_POINT_dup( p: *const EC_POINT, group: *const EC_GROUP, ) -> *mut EC_POINT; pub fn EC_POINT_dup(p: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT; pub fn EC_POINT_get_affine_coordinates_GFp( group: *const EC_GROUP, Loading Loading
openssl-sys/build/find_vendored.rs +4 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,10 @@ use std::path::PathBuf; pub fn get_openssl(_target: &str) -> (PathBuf, PathBuf) { let artifacts = openssl_src::Build::new().build(); println!("cargo:vendored=1"); println!("cargo:root={}", artifacts.lib_dir().parent().unwrap().display()); println!( "cargo:root={}", artifacts.lib_dir().parent().unwrap().display() ); ( artifacts.lib_dir().to_path_buf(), Loading
openssl-sys/build/main.rs +1 −1 Original line number Diff line number Diff line extern crate autocfg; extern crate cc; #[cfg(feature = "vendored")] extern crate openssl_src; extern crate pkg_config; extern crate autocfg; #[cfg(target_env = "msvc")] extern crate vcpkg; Loading
openssl-sys/src/asn1.rs +6 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,12 @@ extern "C" { pub fn ASN1_GENERALIZEDTIME_print(b: *mut BIO, tm: *const ASN1_GENERALIZEDTIME) -> c_int; pub fn ASN1_TIME_new() -> *mut ASN1_TIME; #[cfg(ossl102)] pub fn ASN1_TIME_diff(pday: *mut c_int, psec: *mut c_int, from: *const ASN1_TIME, to: *const ASN1_TIME) -> c_int; pub fn ASN1_TIME_diff( pday: *mut c_int, psec: *mut c_int, from: *const ASN1_TIME, to: *const ASN1_TIME, ) -> c_int; pub fn ASN1_TIME_free(tm: *mut ASN1_TIME); pub fn ASN1_TIME_print(b: *mut BIO, tm: *const ASN1_TIME) -> c_int; pub fn ASN1_TIME_set(from: *mut ASN1_TIME, to: time_t) -> *mut ASN1_TIME; Loading
openssl-sys/src/cms.rs +6 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,11 @@ extern "C" { pub fn i2d_CMS_ContentInfo(a: *mut ::CMS_ContentInfo, pp: *mut *mut c_uchar) -> c_int; #[cfg(ossl101)] pub fn d2i_CMS_ContentInfo(a: *mut *mut ::CMS_ContentInfo, pp: *mut *const c_uchar, length: c_long) -> *mut ::CMS_ContentInfo; pub fn d2i_CMS_ContentInfo( a: *mut *mut ::CMS_ContentInfo, pp: *mut *const c_uchar, length: c_long, ) -> *mut ::CMS_ContentInfo; } #[cfg(ossl101)] Loading Loading @@ -76,7 +80,7 @@ extern "C" { certs: *mut stack_st_X509, data: *mut ::BIO, cipher: *const EVP_CIPHER, flags: c_uint flags: c_uint, ) -> *mut ::CMS_ContentInfo; #[cfg(ossl101)] Loading
openssl-sys/src/ec.rs +1 −4 Original line number Diff line number Diff line Loading @@ -85,10 +85,7 @@ extern "C" { pub fn EC_POINT_free(point: *mut EC_POINT); pub fn EC_POINT_dup( p: *const EC_POINT, group: *const EC_GROUP, ) -> *mut EC_POINT; pub fn EC_POINT_dup(p: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT; pub fn EC_POINT_get_affine_coordinates_GFp( group: *const EC_GROUP, Loading