Skip to content

Commit c8b6077

Browse files
committed
Gate BIO_new_socket in OPENSSL_NO_SOCK in handwritten bindings
OpenSSL conditions the availability of this symbol on OPENSSL_NO_SOCK. Match that in the handwritten bindings. This doesn't really matter as it's only in the handwritten bindings and not used by rust-openssl, but we may as well make it match OpenSSL.
1 parent 99bce5b commit c8b6077

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

openssl-sys/build/expando.c

+4
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ RUST_CONF_OPENSSL_NO_SSL3_METHOD
111111
RUST_CONF_OPENSSL_NO_TLSEXT
112112
#endif
113113

114+
#ifdef OPENSSL_NO_SOCK
115+
RUST_CONF_OPENSSL_NO_SOCK
116+
#endif
117+
114118
#ifdef OPENSSL_NO_STDIO
115119
RUST_CONF_OPENSSL_NO_STDIO
116120
#endif

openssl-sys/src/handwritten/bio.rs

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const_ptr_api! {
5858
}
5959

6060
extern "C" {
61+
#[cfg(not(osslconf = "OPENSSL_NO_SOCK"))]
6162
pub fn BIO_new_socket(sock: c_int, close_flag: c_int) -> *mut BIO;
6263

6364
#[cfg(any(ossl110, libressl273))]

0 commit comments

Comments
 (0)