Skip to content

Commit

Permalink
Merge pull request #2002 from davidben/no-sock
Browse files Browse the repository at this point in the history
Gate BIO_new_socket in OPENSSL_NO_SOCK in handwritten bindings
  • Loading branch information
sfackler authored Jul 25, 2023
2 parents 99bce5b + c8b6077 commit e1fd4da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openssl-sys/build/expando.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions openssl-sys/src/handwritten/bio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down

0 comments on commit e1fd4da

Please # to comment.