summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_err.c
diff options
context:
space:
mode:
authorjsing <>2014-06-24 17:42:54 +0000
committerjsing <>2014-06-24 17:42:54 +0000
commit26677f9bb3a482ca44869c898847f16dda2be01e (patch)
treee87a0d93886ee8eaca1c7e439a46f6f7b71fbc22 /src/lib/libssl/ssl_err.c
parentd4f132e9609745e345c90835ab2d403f8629ba03 (diff)
downloadopenbsd-26677f9bb3a482ca44869c898847f16dda2be01e.tar.gz
openbsd-26677f9bb3a482ca44869c898847f16dda2be01e.tar.bz2
openbsd-26677f9bb3a482ca44869c898847f16dda2be01e.zip
Replace 48 lines of code with a single inet_pton() call. The previous
handrolled version could not even make use of sscanf(), since that would not work with a certain antiquated compiler. It is worth noting that there is a tiny change in behaviour - previously calling BIO_get_host_ip() with something that looked like it might be a valid IP address (for example, "1." or even ".") would result in it returning failure rather than trying a BIO_gethostbyname() - now we'll always try a BIO_gethostbyname() if it was not a valid IPv4 address. ok beck@ miod@ deraadt@
Diffstat (limited to 'src/lib/libssl/ssl_err.c')
0 files changed, 0 insertions, 0 deletions