OpenBSD CVS

CVS log for src/usr.sbin/ypldap/ypldap_dns.c


[BACK] Up to [local] / src / usr.sbin / ypldap

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 18 13:06:33 2023 UTC (10 months, 3 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.15: +6 -2 lines
Diff to previous 1.15 (colored)

Do not duplicate prototypes of log.h in ypldap.h (without the extra
__format__ attribute on top).
Also properly ignore SIGHUP in the child processes.
OK jmatthew@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Aug 23 02:57:27 2022 UTC (21 months, 2 weeks ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.14: +6 -5 lines
Diff to previous 1.14 (colored)

log a warning if we can't resolve the ldap server hostname

Revision 1.14 / (download) - annotate - [select for diffs], Sat Oct 9 18:43:50 2021 UTC (2 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)

delete unneccessary arpa/nameser.h includes
ok millert

Revision 1.13 / (download) - annotate - [select for diffs], Mon Apr 17 16:37:39 2017 UTC (7 years, 1 month ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.12: +5 -4 lines
Diff to previous 1.12 (colored)

don't manipulate hdr.len, it's used internally by libutil now; ok florian@

Revision 1.12 / (download) - annotate - [select for diffs], Tue Nov 29 17:15:27 2016 UTC (7 years, 6 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Use memset(3) instead of bzero(3)

OK deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Sun Apr 10 09:59:21 2016 UTC (8 years, 2 months ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.10: +10 -13 lines
Diff to previous 1.10 (colored)

convert ypldap_addr list to a tailq

ok dlg@

Revision 1.10 / (download) - annotate - [select for diffs], Sat Dec 5 13:15:06 2015 UTC (8 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

EAGAIN handling for imsg_read. OK henning@ benno@

Revision 1.9 / (download) - annotate - [select for diffs], Sun Nov 15 01:31:57 2015 UTC (8 years, 6 months ago) by jmatthew
Branch: MAIN
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored)

pledge for ypldap is easy because it's purely a network program.
One process talks to yp clients, one talks to ldap servers, one does dns.

ok deraadt@

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:22 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 13 15:38:09 2014 UTC (9 years, 10 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.6: +8 -8 lines
Diff to previous 1.6 (colored)

Since the event(s) passed to a callback can be a mask of all events
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@

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 13 12:07:59 2014 UTC (9 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.5: +7 -4 lines
Diff to previous 1.5 (colored)

Close connection/remove event handler when msgbuf_write() hits an
EOF.

ok jmatthew@ claudio@

Revision 1.5 / (download) - annotate - [select for diffs], Fri Mar 16 01:57:42 2012 UTC (12 years, 2 months ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.4: +9 -3 lines
Diff to previous 1.4 (colored)

don't leak ypldap_addr structures when doing dns lookups

ok dlg@

Revision 1.4 / (download) - annotate - [select for diffs], Wed May 26 13:56:08 2010 UTC (14 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Rename some imsg bits to make namespace collisions less likely buf to
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE.

ok henning gilles claudio jacekm deraadt

Revision 1.3 / (download) - annotate - [select for diffs], Thu Apr 1 18:24:04 2010 UTC (14 years, 2 months ago) by zinovik
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

fix fatal calls, that they will report function names from which they are
called, in case of failure developer will be digging for a bug in wrong place

ok krw@, pyr@

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jun 6 05:02:58 2009 UTC (15 years ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.1: +15 -13 lines
Diff to previous 1.1 (colored)

Sync with relayd:
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@

Revision 1.1 / (download) - annotate - [select for diffs], Tue Oct 28 13:47:22 2008 UTC (15 years, 7 months ago) by aschrijver
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5

Do the DNS resolution in a seperate process. A lot of code is copied from ntpd.
This is necessary because DNS resolution is not possible from a chroot.

Cleanup the aldap interface a bit.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.