summaryrefslogtreecommitdiff
path: root/usr.sbin/ypldap/ypldap_dns.c
AgeCommit message (Collapse)Author
2015-12-05EAGAIN handling for imsg_read. OK henning@ benno@Claudio Jeker
2015-11-15pledge for ypldap is easy because it's purely a network program.Jonathan Matthew
One process talks to yp clients, one talks to ldap servers, one does dns. ok deraadt@
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-07-13Since the event(s) passed to a callback can be a mask of all eventsKenneth R Westerback
of interest and EV_WRITE is or'ed into the interesting events, it is more correct to check both events each time. Pointed out by Claudio. ok henning@ claudio@
2014-07-13Close connection/remove event handler when msgbuf_write() hits anKenneth R Westerback
EOF. ok jmatthew@ claudio@
2012-03-16don't leak ypldap_addr structures when doing dns lookupsJonathan Matthew
ok dlg@
2010-05-26Rename some imsg bits to make namespace collisions less likely buf toNicholas Marriott
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt
2010-04-01fix fatal calls, that they will report function names from which they arezinovik
called, in case of failure developer will be digging for a bug in wrong place ok krw@, pyr@
2009-06-06Sync with relayd:Eric Faurot
Stop pushing event handling in the imsg framework. Instead, provide a small glue layer on top of both imsg and libevent. This finally clearly separates event handling and imsg construction. ok pyr@
2008-10-28Do the DNS resolution in a seperate process. A lot of code is copied from ntpd.aschrijver
This is necessary because DNS resolution is not possible from a chroot. Cleanup the aldap interface a bit.