openssl/crypto/bio
Richard Levitte 28a0841bf5 Refactoring BIO: add wrappers around sockaddr et al
Because different platforms have different levels of support for IPv6,
different kinds of sockaddr variants, and some have getaddrinfo et al
while others don't, we could end up with a mess if ifdefs, duplicate
code and other maintainance nightmares.

Instead, we're introducing wrappers around the common form for socket
communication:
BIO_ADDR, closely related to struct sockaddr and some of its variants.
BIO_ADDRINFO, closely related to struct addrinfo.

With that comes support routines, both convenient creators and
accessors, plus a few utility functions:

BIO_parse_hostserv, takes a string of the form host:service and
splits it into host and service.  It checks for * in both parts, and
converts any [ipv6-address] syntax to ust the IPv6 address.

BIO_lookup, looks up information on a host.

All routines handle IPv4 (AF_INET) and IPv6 (AF_INET6) addresses, and
there is support for local sockets (AF_UNIX) as well.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2016-02-03 19:37:07 +01:00
..
b_addr.c Refactoring BIO: add wrappers around sockaddr et al 2016-02-03 19:37:07 +01:00
b_dump.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
b_print.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
b_sock.c Refactoring BIO: add wrappers around sockaddr et al 2016-02-03 19:37:07 +01:00
bf_buff.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bf_lbuf.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bf_nbio.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bf_null.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bio_cb.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bio_err.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bio_lcl.h Refactoring BIO: add wrappers around sockaddr et al 2016-02-03 19:37:07 +01:00
bio_lib.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bss_acpt.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bss_bio.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bss_conn.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bss_dgram.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bss_fd.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bss_file.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bss_log.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bss_mem.c RT4129: BUF_new_mem_buf should take const void * 2016-01-31 14:05:13 -05:00
bss_null.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
bss_sock.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
build.info unified build scheme: add build.info files 2016-02-01 12:46:58 +01:00
Makefile.in Refactoring BIO: add wrappers around sockaddr et al 2016-02-03 19:37:07 +01:00