diff options
author | jsing <> | 2014-06-24 17:42:54 +0000 |
---|---|---|
committer | jsing <> | 2014-06-24 17:42:54 +0000 |
commit | d07d3bea04998f7559dda28be5c8688c1d98ebfd (patch) | |
tree | e87a0d93886ee8eaca1c7e439a46f6f7b71fbc22 /src/lib/libcrypto/buffer/buffer.h | |
parent | 40d3ceb42453aa65d556f5397017f9eeec9e4aa6 (diff) | |
download | openbsd-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