summaryrefslogtreecommitdiff
path: root/lang/rust/files/patch-vendor_openssl-sys_src_crypto.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lang/rust/files/patch-vendor_openssl-sys_src_crypto.rs')
-rw-r--r--lang/rust/files/patch-vendor_openssl-sys_src_crypto.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/lang/rust/files/patch-vendor_openssl-sys_src_crypto.rs b/lang/rust/files/patch-vendor_openssl-sys_src_crypto.rs
deleted file mode 100644
index 0a4f3adbf705..000000000000
--- a/lang/rust/files/patch-vendor_openssl-sys_src_crypto.rs
+++ /dev/null
@@ -1,26 +0,0 @@
---- vendor/openssl-sys/src/crypto.rs.orig 2019-05-13 21:50:35 UTC
-+++ vendor/openssl-sys/src/crypto.rs
-@@ -15,7 +15,13 @@ cfg_if! {
- if #[cfg(ossl110)] {
- pub const CRYPTO_EX_INDEX_SSL: c_int = 0;
- pub const CRYPTO_EX_INDEX_SSL_CTX: c_int = 1;
--
-+ } else if #[cfg(libressl)] {
-+ pub const CRYPTO_EX_INDEX_SSL: c_int = 1;
-+ pub const CRYPTO_EX_INDEX_SSL_CTX: c_int = 2;
-+ }
-+}
-+cfg_if! {
-+ if #[cfg(any(ossl110, libressl271))] {
- extern "C" {
- pub fn OpenSSL_version_num() -> c_ulong;
- pub fn OpenSSL_version(key: c_int) -> *const c_char;
-@@ -64,7 +70,7 @@ pub type CRYPTO_EX_free = unsafe extern "C" fn(
- argp: *mut c_void,
- );
- extern "C" {
-- #[cfg(ossl110)]
-+ #[cfg(any(ossl110, libressl))]
- pub fn CRYPTO_get_ex_new_index(
- class_index: c_int,
- argl: c_long,