diff options
author | John Hughes <john@atlantech.com> | 2018-02-08 10:49:02 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-02-19 22:58:37 +0100 |
commit | ebc0168384e9bbc29c02b85adb01036609769761 (patch) | |
tree | 814c7f6055f18083478168d89578f6e3900c0895 /include | |
parent | b383aa2081467e8d49c3362d295da7bd5cb4e1d8 (diff) |
Add BIO_bind function to bind local address for a socket.
Add -bind option to s_client application to allow specification of
local address for connection.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5272)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/bio.h | 1 | ||||
-rw-r--r-- | include/openssl/bioerr.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/openssl/bio.h b/include/openssl/bio.h index cffcd3debd..c6f57f214c 100644 --- a/include/openssl/bio.h +++ b/include/openssl/bio.h @@ -709,6 +709,7 @@ int BIO_sock_info(int sock, int BIO_socket(int domain, int socktype, int protocol, int options); int BIO_connect(int sock, const BIO_ADDR *addr, int options); +int BIO_bind(int sock, const BIO_ADDR *addr, int options); int BIO_listen(int sock, const BIO_ADDR *addr, int options); int BIO_accept_ex(int accept_sock, BIO_ADDR *addr, int options); int BIO_closesocket(int sock); diff --git a/include/openssl/bioerr.h b/include/openssl/bioerr.h index 7a552d6105..4931c1d0ad 100644 --- a/include/openssl/bioerr.h +++ b/include/openssl/bioerr.h @@ -24,6 +24,7 @@ int ERR_load_BIO_strings(void); # define BIO_F_BIO_ACCEPT 101 # define BIO_F_BIO_ACCEPT_EX 137 # define BIO_F_BIO_ADDR_NEW 144 +# define BIO_F_BIO_BIND 147 # define BIO_F_BIO_CALLBACK_CTRL 131 # define BIO_F_BIO_CONNECT 138 # define BIO_F_BIO_CTRL 103 |