NetBSD/dist/bind/lib/irs
wiz 4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
..
Makefile.BSD
README
dns.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
dns_gr.c
dns_ho.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
dns_nw.c
dns_p.h
dns_pr.c
dns_pw.c
dns_sv.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
gai_strerror.c
gen.c
gen_gr.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
gen_ho.c
gen_ng.c
gen_nw.c
gen_p.h
gen_pr.c
gen_pw.c
gen_sv.c
getaddrinfo.c
getgrent.c
getgrent_r.c
gethostent.c upgrade to 8.2.4. 2001-05-17 22:59:37 +00:00
gethostent_r.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
getnameinfo.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
getnetent.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
getnetent_r.c
getnetgrent.c
getnetgrent_r.c
getprotoent.c
getprotoent_r.c
getpwent.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
getpwent_r.c
getservent.c
getservent_r.c
hesiod.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
hesiod_p.h
irp.c va_{start,end} audit: 2001-09-24 13:22:25 +00:00
irp_gr.c
irp_ho.c
irp_ng.c
irp_nw.c
irp_p.h Format string cleanups by Bill Sommerfeld. 2000-10-08 20:03:12 +00:00
irp_pr.c
irp_pw.c
irp_sv.c
irpmarshall.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
irs_data.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
irs_data.h
irs_p.h
lcl.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
lcl_gr.c
lcl_ho.c
lcl_ng.c
lcl_nw.c
lcl_p.h
lcl_pr.c
lcl_pw.c
lcl_sv.c
nis.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00
nis_gr.c
nis_ho.c
nis_ng.c
nis_nw.c
nis_p.h
nis_pr.c
nis_pw.c
nis_sv.c
nul_ng.c
pathnames.h
util.c upgrade to BIND 8.2.3. the upgrade is critical (security fixes). 2001-01-27 07:21:56 +00:00

README

/*
 * Copyright (c) 1996,1999 by Internet Software Consortium.
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
 * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 * SOFTWARE.
 */

This is the Information Retrieval Service (IRS).
Designed by Paul Vixie (ISC) and Ted T'so (MIT), 1995.
Written by Paul Vixie, Ted T'so and Sam Stoller, 1996.
Id: README,v 1.5 1999/01/08 19:23:52 vixie Exp

Introduction:

	The /etc/irs.conf file defines access methods (like DNS or NIS or
LOCAL) for each map (like PASSWD or GROUP or HOSTS).  One of the access
methods is "generic" in that it uses the rules from /etc/irs.conf to decide
which of potentially several different access methods to use for any given
map.  Stubs have been written for all of the system getXbyY() functions so
that old programs can get this new "multiple access method" capability without
any source code changes.

Thread Safety:

	It is possible for a thread safe program to be altered to call the
underlying interface (rather than the standard getXbyY() stubs) and get some
reentrance capabilities.  Note that the underlying libraries (which we call)
are not all thread-safe, for example, the YP and DNS resolvers.  A lot more
work will need to be done before we have full thread safety.  But we believe
that the native API for this system does not impose any reentrancy problems.
We don't use global or static variables anywhere except in the getXbyY() stubs.

Apologies:

	We did cheap object orientation without using C++.  This stuff is
standard C, and it suffers from some of the defects shared by all object
systems implemented in C.  Even so, this is the smallest design we could
think of that would be extensible to more access methods, more map types,
and more map operations (like BYNAME or BYGID or whatever) in the future.

	There's a fair amount of duplicated code between the different
access methods for a given map.  For example, the code that parses the
passwd entries is almost identical between the DNS and NIS map objects.  To
clean this up, the almost-identical functions need to be split into similar
and dissimilar parts, and some parts of the "struct pvt"'s need to be made
shared via substructures.