Codebase list openssl / 2cb8445
Document BIO_{get,set}_conn_ip_family macros. Add BIO_get_conn_ip_family and BIO_set_conn_ip_family macros to util/private.num and document them in BIO_s_connect.pod. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/5007) Vitezslav Cizek authored 6 years ago Ben Kaduk committed 6 years ago
2 changed file(s) with 15 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
33
44 BIO_set_conn_address, BIO_get_conn_address,
55 BIO_s_connect, BIO_new_connect, BIO_set_conn_hostname, BIO_set_conn_port,
6 BIO_get_conn_hostname,
7 BIO_get_conn_port,
6 BIO_set_conn_ip_family, BIO_get_conn_ip_family,
7 BIO_get_conn_hostname, BIO_get_conn_port,
88 BIO_set_nbio, BIO_do_connect - connect BIO
99
1010 =head1 SYNOPSIS
1818 long BIO_set_conn_hostname(BIO *b, char *name);
1919 long BIO_set_conn_port(BIO *b, char *port);
2020 long BIO_set_conn_address(BIO *b, BIO_ADDR *addr);
21 long BIO_set_conn_ip_family(BIO *b, long family);
2122 const char *BIO_get_conn_hostname(BIO *b);
2223 const char *BIO_get_conn_port(BIO *b);
2324 const BIO_ADDR *BIO_get_conn_address(BIO *b);
25 const long BIO_get_conn_ip_family(BIO *b);
2426
2527 long BIO_set_nbio(BIO *b, long n);
2628
6870 BIO_set_conn_address() sets the address and port information using
6971 a BIO_ADDR(3ssl).
7072
73 BIO_set_conn_ip_family() sets the IP family.
74
7175 BIO_get_conn_hostname() returns the hostname of the connect BIO or
7276 NULL if the BIO is initialized but no hostname is set.
7377 This return value is an internal pointer which should not be modified.
7781
7882 BIO_get_conn_address() returns the address information as a BIO_ADDR.
7983 This return value is an internal pointer which should not be modified.
84
85 BIO_get_conn_ip_family() returns the IP family of the connect BIO.
8086
8187 BIO_set_nbio() sets the non blocking I/O flag to B<n>. If B<n> is
8288 zero then blocking I/O is set. If B<n> is 1 then non blocking I/O
125131
126132 BIO_set_conn_hostname(), BIO_set_conn_port(), BIO_get_conn_hostname(),
127133 BIO_set_conn_address(), BIO_get_conn_port(), BIO_get_conn_address(),
134 BIO_set_conn_ip_family(), BIO_get_conn_ip_family(),
128135 BIO_set_nbio(), and BIO_do_connect() are macros.
129136
130137 =head1 RETURN VALUES
134141 BIO_get_fd() returns the socket or -1 if the BIO has not
135142 been initialized.
136143
137 BIO_set_conn_address() and BIO_set_conn_port() always return 1.
144 BIO_set_conn_address(), BIO_set_conn_port(), and BIO_set_conn_ip_family()
145 always return 1.
138146
139147 BIO_set_conn_hostname() returns 1 on success and 0 on failure.
140148
143151
144152 BIO_get_conn_hostname() returns the connected hostname or NULL if
145153 none was set.
154
155 BIO_get_conn_ip_family() returns the address family or -1 if none was set.
146156
147157 BIO_get_conn_port() returns a string representing the connected
148158 port or NULL if not set.
9292 BIO_get_conn_address define
9393 BIO_get_conn_hostname define
9494 BIO_get_conn_port define
95 BIO_get_conn_ip_family define
9596 BIO_get_fd define
9697 BIO_get_fp define
9798 BIO_get_info_callback define
121122 BIO_set_conn_address define
122123 BIO_set_conn_hostname define
123124 BIO_set_conn_port define
125 BIO_set_conn_ip_family define
124126 BIO_set_fd define
125127 BIO_set_fp define
126128 BIO_set_info_callback define