Browse Source

add support for EDNS0 extended flag DNSSEC OK (aka DO). ok deraadt@

OPENBSD_3_0
jakob 23 years ago
parent
commit
0b83396f5d
2 changed files with 9 additions and 2 deletions
  1. +6
    -1
      src/include/arpa/nameser.h
  2. +3
    -1
      src/include/resolv.h

+ 6
- 1
src/include/arpa/nameser.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: nameser.h,v 1.5 2001/07/25 17:05:46 jakob Exp $ */
/* $OpenBSD: nameser.h,v 1.6 2001/07/31 22:02:18 jakob Exp $ */
/* /*
* ++Copyright++ 1983, 1989, 1993 * ++Copyright++ 1983, 1989, 1993
@ -248,6 +248,11 @@
/* Max length of text sig block */ /* Max length of text sig block */
#define MAX_KEY_BASE64 (((MAX_MD5RSA_KEY_BYTES+2)/3)*4) #define MAX_KEY_BASE64 (((MAX_MD5RSA_KEY_BYTES+2)/3)*4)
/*
* EDNS0 Z-field extended flags
*/
#define DNS_MESSAGEEXTFLAG_DO 0x8000U
/* /*
* Status return codes for T_UNSPEC conversion routines * Status return codes for T_UNSPEC conversion routines
*/ */


+ 3
- 1
src/include/resolv.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: resolv.h,v 1.6 2001/06/11 10:06:02 itojun Exp $ */
/* $OpenBSD: resolv.h,v 1.7 2001/07/31 22:02:18 jakob Exp $ */
/* /*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -194,6 +194,8 @@ struct __res_state_ext {
#define RES_USE_INET6 0x00002000 /* use/map IPv6 in gethostbyname() */ #define RES_USE_INET6 0x00002000 /* use/map IPv6 in gethostbyname() */
/* KAME extensions: use higher bit to avoid conflict with ISC use */ /* KAME extensions: use higher bit to avoid conflict with ISC use */
#define RES_USE_EDNS0 0x40000000 /* use EDNS0 */ #define RES_USE_EDNS0 0x40000000 /* use EDNS0 */
/* DNSSEC extensions: use higher bit to avoid conflict with ISC use */
#define RES_USE_DNSSEC 0x20000000 /* use DNSSEC using OK bit in OPT */
#define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH) #define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH)


Loading…
Cancel
Save