summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/buffer/buffer.h
diff options
context:
space:
mode:
authorjsing <>2014-06-24 17:42:54 +0000
committerjsing <>2014-06-24 17:42:54 +0000
commitd07d3bea04998f7559dda28be5c8688c1d98ebfd (patch)
treee87a0d93886ee8eaca1c7e439a46f6f7b71fbc22 /src/lib/libcrypto/buffer/buffer.h
parent40d3ceb42453aa65d556f5397017f9eeec9e4aa6 (diff)
downloadopenbsd-d07d3bea04998f7559dda28be5c8688c1d98ebfd.tar.gz
openbsd-d07d3bea04998f7559dda28be5c8688c1d98ebfd.tar.bz2
openbsd-d07d3bea04998f7559dda28be5c8688c1d98ebfd.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/libcrypto/buffer/buffer.h')
0 files changed, 0 insertions, 0 deletions