Commit c8b6077c authored by David Benjamin's avatar David Benjamin
Browse files

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.
parent 99bce5b3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -111,6 +111,10 @@ RUST_CONF_OPENSSL_NO_SSL3_METHOD
RUST_CONF_OPENSSL_NO_TLSEXT
#endif

#ifdef OPENSSL_NO_SOCK
RUST_CONF_OPENSSL_NO_SOCK
#endif

#ifdef OPENSSL_NO_STDIO
RUST_CONF_OPENSSL_NO_STDIO
#endif
+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ const_ptr_api! {
}

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

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