#
b5afe704 |
| 28-Apr-2018 |
schwarze <schwarze@openbsd.org> |
To allow us to get rid of /etc/networks, make getnetby*(3) wrappers around gethostby*_async(3). If you had anything of importance in /etc/networks, specify it in /etc/hosts instead. Feedback and OK
To allow us to get rid of /etc/networks, make getnetby*(3) wrappers around gethostby*_async(3). If you had anything of importance in /etc/networks, specify it in /etc/hosts instead. Feedback and OK eric@, OK deraadt@
show more ...
|
#
f6f51dad |
| 23-Feb-2017 |
eric <eric@openbsd.org> |
Put a common subq pointer in the query struct, rather than one in each element of the union.
ok gilles@ millert@ krw@
|
#
6c455d5c |
| 21-Feb-2017 |
eric <eric@openbsd.org> |
missing breaks
ok jca@ krw@ gilles@
|
#
a55a423a |
| 20-Sep-2015 |
eric <eric@openbsd.org> |
remove bogus includes of err.h
|
#
5826fd8c |
| 14-Sep-2015 |
guenther <guenther@openbsd.org> |
Wrap <asr.h> so internal calls go direct and all the symbols are weak
|
#
253ef892 |
| 09-Sep-2015 |
deraadt <deraadt@openbsd.org> |
Hide all unnecessary asr / resolver related API with _ prefixes. direction & ok guenther
|
#
f108579b |
| 29-May-2015 |
eric <eric@openbsd.org> |
fix a possible off-by-one when reading /etc/hosts if it doesn't end with a newline.
ok jca@
|
#
0d7b84a8 |
| 02-Nov-2014 |
eric <eric@openbsd.org> |
Fix a NULL deref when getting an actual result for an invalid hostname in gethostbyname(). Similar fix for getnetbyname().
ok deraadt@ daniel@ jca@
|
#
241db059 |
| 15-Sep-2014 |
guenther <guenther@openbsd.org> |
When fopen()ing internal to libc (the API doesn't support the use of the resulting FILE *), then pass fopen() the 'e' mode letter to mark it close-on-exec.
ok miod@
|
#
1457204b |
| 15-Sep-2014 |
guenther <guenther@openbsd.org> |
Use _PATH_NETWORKS for "/etc/networks"
ok miod@
|
#
ab50be5e |
| 23-Jul-2014 |
eric <eric@openbsd.org> |
Make queries using the search list for hostname lookups fail with NO_DATA/EAI_NODATA when the hostname param is an empty string. So far, they were using the entries in the search list with no additio
Make queries using the search list for hostname lookups fail with NO_DATA/EAI_NODATA when the hostname param is an empty string. So far, they were using the entries in the search list with no additional component, which is not really expected.
reported by jsing@ and a few others
ok deraadt@, "makes sense" jsing@
show more ...
|
#
f94f01be |
| 13-May-2014 |
eric <eric@openbsd.org> |
skip incomplete entries in /etc/hosts and /etc/networks fix null deref spotted by Seth Hanford, pinpointed by dtucker@
ok florian@
|
#
d216d6b1 |
| 26-Mar-2014 |
eric <eric@openbsd.org> |
Make the asr API public. Install asr.h to /usr/include.h and manpages. Include tweaks suggested by mpi@
ok deraadt@
|
#
5be03f8f |
| 25-Mar-2014 |
eric <eric@openbsd.org> |
Cleanup and simplify the API to be exposed. Use better names for structures, functions and defines.
discussed with and ok deraadt@ guenther@
|
#
f90bf415 |
| 14-Mar-2014 |
eric <eric@openbsd.org> |
prefix structure names to avoid ambiguity and possible collisions when the API gets public.
ok deraadt@
|
#
01b887f7 |
| 26-Feb-2014 |
eric <eric@openbsd.org> |
Do not restrict chars in dname during label expansion, but validate resulting hostnames before returning them to the caller.
ok deraadt@
|
#
5bd9e5c2 |
| 12-Jul-2013 |
eric <eric@openbsd.org> |
Make some symbols static and prefix all visible symbols with asr_ to prevent collisions with third-party programs.
suggested by sthen@, ok theo@
|
#
c5221d45 |
| 30-Apr-2013 |
eric <eric@openbsd.org> |
Do not take external buffers for storing DNS responses in the internal async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when nee
Do not take external buffers for storing DNS responses in the internal async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when needed.
show more ...
|
#
43f9b988 |
| 01-Apr-2013 |
deraadt <deraadt@openbsd.org> |
space cleanup; ok eric
|
#
cd22283f |
| 24-Nov-2012 |
eric <eric@openbsd.org> |
Saner implementation for self-contained hostent and netent, and also a couple of fixes.
|
#
80f48568 |
| 24-Nov-2012 |
eric <eric@openbsd.org> |
knf
|
#
975956b6 |
| 24-Nov-2012 |
eric <eric@openbsd.org> |
make separate structures for pack and unpack
|
#
ebdc2eeb |
| 07-Sep-2012 |
eric <eric@openbsd.org> |
unused variables
|
#
836b804a |
| 19-Aug-2012 |
eric <eric@openbsd.org> |
When building dynamic hostent and netent, allocate a single linear buffer to hold both the structure and the data. The freehostent() and freenetent() API functions are not needed anymore. While ther
When building dynamic hostent and netent, allocate a single linear buffer to hold both the structure and the data. The freehostent() and freenetent() API functions are not needed anymore. While there, ensure that the constructed addr and alias lists are really NULL terminated.
show more ...
|
#
1b1eedeb |
| 10-Jul-2012 |
eric <eric@openbsd.org> |
same code update and fix as for gethostnamadr_async
|