#
a55a423a |
| 20-Sep-2015 |
eric <eric@openbsd.org> |
remove bogus includes of err.h
|
#
2e92d9d7 |
| 20-Sep-2015 |
eric <eric@openbsd.org> |
use _PATH_RESCONF directly
|
#
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
|
#
172af5aa |
| 02-Sep-2015 |
deraadt <deraadt@openbsd.org> |
use _PATH_RESCONF
|
#
5aaab171 |
| 04-Jun-2015 |
eric <eric@openbsd.org> |
make sure to check for resolv.conf update the first time the resolver is used after pid has changed.
ok deraadt@
|
#
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@
|
#
d2d7f9c9 |
| 26-May-2015 |
eric <eric@openbsd.org> |
simply use _PATH_HOSTS where appropriate
|
#
aea60bee |
| 16-Jan-2015 |
deraadt <deraadt@openbsd.org> |
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
|
#
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@
|
#
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@
|
#
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@
|
#
eaa928d5 |
| 01-Jun-2013 |
eric <eric@openbsd.org> |
Move search domain iteration code in res_search_async.c where it belongs.
|
#
6a7a3d64 |
| 01-Jun-2013 |
eric <eric@openbsd.org> |
Make hostaliases work for gethostbyname() and getaddrinfo() when looking into /etc/hosts. Remove the alias check from the search domain iteration. Instead, take a shortcut to res_query_async_ctx() i
Make hostaliases work for gethostbyname() and getaddrinfo() when looking into /etc/hosts. Remove the alias check from the search domain iteration. Instead, take a shortcut to res_query_async_ctx() in res_search_async_ctx().
show more ...
|
#
f9524f79 |
| 01-Jun-2013 |
eric <eric@openbsd.org> |
Update asr_hostaliases() to make all necessary checks in the function. Explicitely check for issetguid() before calling getenv(). Also make asr_hostalias() callable from other parts of asr too.
|
#
d3064b1f |
| 01-Jun-2013 |
eric <eric@openbsd.org> |
iterating over the ns list only matters for res_send_async.c, so move things around.
|
#
1ed934d0 |
| 27-May-2013 |
eric <eric@openbsd.org> |
Add minimal support for _res setup and update.
Change res_init() to initialize the _res structure on first call, and udpate the global async context if changes were made by the user. All resolver fu
Add minimal support for _res setup and update.
Change res_init() to initialize the _res structure on first call, and udpate the global async context if changes were made by the user. All resolver functions now call res_init() internally.
fixes issue spotted by otto@
show more ...
|
#
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 ...
|
#
2ccfb57c |
| 17-Apr-2013 |
otto <otto@openbsd.org> |
check return value of strdup(), fix mem leak in error path and take into account that asr_use_resolver() can return NULL; ok tedu@ eric@
|
#
99491d36 |
| 17-Apr-2013 |
deraadt <deraadt@openbsd.org> |
give a timespec a name that is easier to verify
|
#
4778ae39 |
| 11-Apr-2013 |
otto <otto@openbsd.org> |
Proper access of _THREAD_PRIVATE storage. Avoids a mem leak and reinit of resolver context for each resolver call for single threaded programs. With and ok tedu@ ok eric@
|
#
ddc6d4c5 |
| 01-Apr-2013 |
eric <eric@openbsd.org> |
If more than one lookup line is found in resolv.conf, the latest one takes precedence. Simplify code while there.
suggested by deraadt@
|
#
6dde8a29 |
| 01-Apr-2013 |
eric <eric@openbsd.org> |
properly check for domain name truncation at various places and fail if that happens.
prodded by deraadt@
|
#
43f9b988 |
| 01-Apr-2013 |
deraadt <deraadt@openbsd.org> |
space cleanup; ok eric
|