summaryrefslogtreecommitdiff
path: root/openbsd-compat/getrrsetbyname.c
Commit message (Collapse)AuthorAgeFilesLines
* bounds checking for getrrsetbyname() replacement;Damien Miller2023-03-101-8/+39
| | | | Spotted by Coverity in CID 405033; ok millert@
* undef _get{short,long} before redefiningDamien Miller2022-10-141-3/+9
|
* Improve handling of _getshort and _getlong.Darren Tucker2022-02-251-8/+9
| | | | | | If the system native ones are exactly as required then use them, otherwise use the local versions mapped to another name to prevent name collisions.
* ANSIfy getshort and getlong.Darren Tucker2022-02-251-10/+8
| | | | | These functions appear to have come from OpenBSD's lib/libc/net/res_comp.c which made this change in 2005.
* - (dtucker) [INSTALL LICENCE configure.ac openbsd-compat/Makefile.inDarren Tucker2011-11-041-2/+2
| | | | | | | openbsd-compat/getrrsetbyname-ldns.c openbsd-compat/getrrsetbyname.c] bz 1320: Add optional support for LDNS, a BSD licensed DNS resolver library which supports DNSSEC. Patch from Simon Vallet (svallet at genoscope cns fr) with some rework from myself and djm. ok djm.
* - (dtucker) [openbsd-compat/getrrsetbyname.c] Reduce answer buffer size so itDarren Tucker2009-07-131-1/+1
| | | | | fits into 16 bits to work around a bug in glibc's resolver where it masks off the buffer size at 16 bits. Patch from Hauke Lampe, ok djm jakob.
* - jakob@cvs.openbsd.org 2007/10/11 18:36:41Damien Miller2007-10-261-3/+3
| | | | | [openbsd-compat/getrrsetbyname.c] use RRSIG instead of SIG for DNSSEC. ok djm@
* - (dtucker) [configure.ac openbsd-compat/getrrsetbyname.c] Bug #1299: Use theDarren Tucker2007-04-291-6/+2
| | | | | platform's _res if it has one. Should fix problem of DNSSEC record lookups on NetBSD as reported by Curt Sampson.
* - (dtucker) [openbsd-compat/getrrsetbyname.c] Don't attempt to callocDarren Tucker2007-02-191-4/+6
| | | | | | an array for signatures when there are none since "calloc(0, n) returns NULL on some platforms (eg Tru64), which is explicitly permitted by POSIX. Diagnosis and patch by svallet genoscope.cns.fr.
* - (dtucker) [ssh-keyscan.c ssh-rand-helper.c ssh.c sshconnect.cDarren Tucker2006-09-021-0/+3
| | | | | | | openbsd-compat/bindresvport.c openbsd-compat/getrrsetbyname.c openbsd-compat/port-tun.c openbsd-compat/rresvport.c] Include <arpa/inet.h> for hton* and ntoh* macros. Required on (at least) HP-UX since we define _XOPEN_SOURCE_EXTENDED. Found by santhi.amirta at gmail com.
* - (dtucker) [openbsd-compat/getrrsetbyname.c] Nees stdlib.h for malloc.Darren Tucker2006-08-051-0/+1
|
* - (djm) [acss.c auth-krb5.c auth-options.c auth-pam.c auth-shadow.c]Damien Miller2006-07-241-0/+2
| | | | | | | | | | | | | | | [canohost.c channels.c cipher-acss.c defines.h dns.c gss-genr.c] [gss-serv-krb5.c gss-serv.c log.h loginrec.c logintest.c readconf.c] [servconf.c ssh-keygen.c ssh-keyscan.c ssh-keysign.c ssh-rand-helper.c] [ssh.c sshconnect.c sshd.c openbsd-compat/bindresvport.c] [openbsd-compat/bsd-arc4random.c openbsd-compat/bsd-misc.c] [openbsd-compat/getrrsetbyname.c openbsd-compat/glob.c] [openbsd-compat/mktemp.c openbsd-compat/port-linux.c] [openbsd-compat/port-tun.c openbsd-compat/readpassphrase.c] [openbsd-compat/setproctitle.c openbsd-compat/xmmap.c] make the portable tree compile again - sprinkle unistd.h and string.h back in. Don't redefine __unused, as it turned out to be used in headers on Linux, and replace its use in auth-pam.c with ARGSUSED
* - (dtucker) [openbsd-compat/getrrsetbyname.c] Undef _res before defining it,Darren Tucker2006-06-301-0/+3
| | | | prevents warnings on platforms where _res is in the system headers.
* - (dtucker) [openbsd-compat/getrrsetbyname.c] Use _compat_res instead ofDarren Tucker2006-05-151-0/+4
| | | | | | _res, prevents problems on some platforms that have _res as a global but don't have getrrsetbyname(), eg IRIX 5.3. Found and tested by georg.schwarz at freenet.de, ok djm@.
* - (dtucker) [openbsd-compat/getrrsetbyname.c] Restore Portable-specificDarren Tucker2005-11-121-0/+2
| | | | ifdef lost during sync. Spotted by tim@.
* - (dtucker) [openbsd-compat/{LOTS}] Move the "OPENBSD ORIGINAL" markers toDarren Tucker2005-11-101-2/+2
| | | | | after the copyright notices. Having them at the top next to the CVSIDs guarantees a conflict for each and every sync.
* - (djm) [openbsd-compat/getrrsetbyname.c] Sync to latest OpenBSD version,Damien Miller2005-11-051-50/+62
| | | | | resolving memory leak bz#1111 reported by kremenek AT cs.stanford.edu; ok dtucker@
* - (dtucker) [configure.ac openbsd-compat/getrrsetbyname.c] Bug #1033: ProvideDarren Tucker2005-05-261-0/+4
| | | | | templates for _getshort and _getlong if missing to prevent compiler warnings on Linux.
* - (dtucker) [openbsd-compat/getrrsetbyname.c] Prevent getrrsetbyname fromDarren Tucker2004-08-291-1/+1
| | | | | failing with NOMEMORY if no sigs are returned and malloc(0) returns NULL. From Martin.Kraemer at Fujitsu-Siemens.com; ok djm@
* - (dtucker) [openbsd-compat/getrrsetbyname.c] Fix typo too: HAVE_DECL_H_ERRORDarren Tucker2004-05-131-1/+1
| | | | -> HAVE_DECL_H_ERRNO.
* - (dtucker) [openbsd-compat/getrrsetbyname.c] Check that HAVE_DECL_H_ERRORDarren Tucker2004-05-131-1/+1
| | | | is defined before using.
* - (dtucker) [configure.ac openbsd-compat/getrrsetbyname.c] Declare h_errnoDarren Tucker2004-04-231-0/+4
| | | | | as extern int if not already declared. Fixes compile errors on old SCO platforms. ok tim@
* [openbsd-compat/getrrsetbyname.c] Make gcc 2.7.2.3 happy. ok djm@Tim Rice2004-02-231-7/+4
|
* - (djm) Annotate OpenBSD-derived files in openbsd-compat/ with originalDamien Miller2003-11-241-0/+2
| | | | source file path (in OpenBSD tree).
* Fix comments to reflect recent change.Darren Tucker2003-10-151-1/+1
|
* - (dtucker) [acconfig.h configure.ac dns.c openbsd-compat/getrrsetbyname.cDarren Tucker2003-10-151-1/+1
| | | | | openbsd-compat/getrrsetbyname.h] DNS fingerprint support is now always compiled in but disabled in config.
* [configure.ac acconfig.h openbsd-compat/getrrsetbyname.c] test forTim Rice2003-09-081-0/+2
| | | | HEADER.ad in arpa/nameser.h
* [configure.ac openbsd-compat/getrrsetbyname.c] wrap _getshort andTim Rice2003-09-081-0/+4
| | | | _getlong in #ifndef
* - (djm) Sync openbsd-compat/ with OpenBSD CVS headDamien Miller2003-05-181-16/+21
|
* - (djm) Only build getrrsetbyname replacement when using --with-dnsDamien Miller2003-05-151-2/+2
|
* - (djm) Import getrrsetbyname() function from OpenBSD libc (for DNS support)Damien Miller2003-05-151-0/+567