Author: pfg
Date: Tue Aug  5 23:16:31 2014
New Revision: 269610
URL: http://svnweb.freebsd.org/changeset/base/269610

Log:
  Bring final version of libbind:
  
  From
  http://www.isc.org/downloads/libbind/
  
  The libbind functions have been separated from the BIND suite as of BIND
  9.6.0. Originally from older versions of BIND, they have been continually
  maintained and improved but not installed by default with BIND 9. This
  standard resolver library contains the same historical functions and
  headers included with many Unix operating systems. In fact, most
  implementations are based on the same original code.
  
  At present, NetBSD maintains libbind code, now known as "netresolv".

Added:
  vendor/resolver/9.5.0/
     - copied from r269608, vendor/resolver/dist/
  vendor/resolver/9.5.0/include/hesiod.h   (contents, props changed)
  vendor/resolver/9.5.0/include/netgroup.h   (contents, props changed)
  vendor/resolver/9.5.0/lib/libc/include/fd_setsize.h   (contents, props 
changed)
  vendor/resolver/9.5.0/lib/libc/include/isc/assertions.h   (contents, props 
changed)
  vendor/resolver/9.5.0/lib/libc/include/isc/dst.h   (contents, props changed)
  vendor/resolver/9.5.0/lib/libc/include/isc/heap.h   (contents, props changed)
  vendor/resolver/9.5.0/lib/libc/include/isc/memcluster.h   (contents, props 
changed)
  vendor/resolver/9.5.0/lib/libc/isc/assertions.c   (contents, props changed)
  vendor/resolver/9.5.0/lib/libc/isc/assertions.mdoc
  vendor/resolver/9.5.0/lib/libc/resolv/res_mkupdate.h   (contents, props 
changed)
  vendor/resolver/9.5.0/lib/libc/resolv/res_sendsigned.c   (contents, props 
changed)
  vendor/resolver/dist/include/hesiod.h   (contents, props changed)
  vendor/resolver/dist/include/netgroup.h   (contents, props changed)
  vendor/resolver/dist/lib/libc/include/fd_setsize.h   (contents, props changed)
  vendor/resolver/dist/lib/libc/include/isc/assertions.h   (contents, props 
changed)
  vendor/resolver/dist/lib/libc/include/isc/dst.h   (contents, props changed)
  vendor/resolver/dist/lib/libc/include/isc/heap.h   (contents, props changed)
  vendor/resolver/dist/lib/libc/include/isc/memcluster.h   (contents, props 
changed)
  vendor/resolver/dist/lib/libc/isc/assertions.c   (contents, props changed)
  vendor/resolver/dist/lib/libc/isc/assertions.mdoc
  vendor/resolver/dist/lib/libc/resolv/res_mkupdate.h   (contents, props 
changed)
  vendor/resolver/dist/lib/libc/resolv/res_sendsigned.c   (contents, props 
changed)
Modified:
  vendor/resolver/9.5.0/include/arpa/inet.h
  vendor/resolver/9.5.0/include/arpa/nameser.h
  vendor/resolver/9.5.0/include/arpa/nameser_compat.h
  vendor/resolver/9.5.0/include/res_update.h
  vendor/resolver/9.5.0/include/resolv.h
  vendor/resolver/9.5.0/lib/libc/include/isc/eventlib.h
  vendor/resolver/9.5.0/lib/libc/include/isc/list.h
  vendor/resolver/9.5.0/lib/libc/inet/inet_addr.c
  vendor/resolver/9.5.0/lib/libc/inet/inet_cidr_ntop.c
  vendor/resolver/9.5.0/lib/libc/inet/inet_cidr_pton.c
  vendor/resolver/9.5.0/lib/libc/inet/inet_net_ntop.c
  vendor/resolver/9.5.0/lib/libc/inet/inet_net_pton.c
  vendor/resolver/9.5.0/lib/libc/inet/inet_neta.c
  vendor/resolver/9.5.0/lib/libc/inet/inet_ntoa.c
  vendor/resolver/9.5.0/lib/libc/inet/inet_ntop.c
  vendor/resolver/9.5.0/lib/libc/inet/inet_pton.c
  vendor/resolver/9.5.0/lib/libc/inet/nsap_addr.c
  vendor/resolver/9.5.0/lib/libc/isc/ev_streams.c
  vendor/resolver/9.5.0/lib/libc/isc/ev_timers.c
  vendor/resolver/9.5.0/lib/libc/isc/eventlib_p.h
  vendor/resolver/9.5.0/lib/libc/nameser/ns_name.c
  vendor/resolver/9.5.0/lib/libc/nameser/ns_netint.c
  vendor/resolver/9.5.0/lib/libc/nameser/ns_parse.c
  vendor/resolver/9.5.0/lib/libc/nameser/ns_print.c
  vendor/resolver/9.5.0/lib/libc/nameser/ns_samedomain.c
  vendor/resolver/9.5.0/lib/libc/nameser/ns_ttl.c
  vendor/resolver/9.5.0/lib/libc/resolv/herror.c
  vendor/resolver/9.5.0/lib/libc/resolv/res_comp.c
  vendor/resolver/9.5.0/lib/libc/resolv/res_data.c
  vendor/resolver/9.5.0/lib/libc/resolv/res_debug.c
  vendor/resolver/9.5.0/lib/libc/resolv/res_findzonecut.c
  vendor/resolver/9.5.0/lib/libc/resolv/res_init.c
  vendor/resolver/9.5.0/lib/libc/resolv/res_mkquery.c
  vendor/resolver/9.5.0/lib/libc/resolv/res_mkupdate.c
  vendor/resolver/9.5.0/lib/libc/resolv/res_query.c
  vendor/resolver/9.5.0/lib/libc/resolv/res_send.c
  vendor/resolver/9.5.0/lib/libc/resolv/res_update.c
  vendor/resolver/dist/include/arpa/inet.h
  vendor/resolver/dist/include/arpa/nameser.h
  vendor/resolver/dist/include/arpa/nameser_compat.h
  vendor/resolver/dist/include/res_update.h
  vendor/resolver/dist/include/resolv.h
  vendor/resolver/dist/lib/libc/include/isc/eventlib.h
  vendor/resolver/dist/lib/libc/include/isc/list.h
  vendor/resolver/dist/lib/libc/inet/inet_addr.c
  vendor/resolver/dist/lib/libc/inet/inet_cidr_ntop.c
  vendor/resolver/dist/lib/libc/inet/inet_cidr_pton.c
  vendor/resolver/dist/lib/libc/inet/inet_net_ntop.c
  vendor/resolver/dist/lib/libc/inet/inet_net_pton.c
  vendor/resolver/dist/lib/libc/inet/inet_neta.c
  vendor/resolver/dist/lib/libc/inet/inet_ntoa.c
  vendor/resolver/dist/lib/libc/inet/inet_ntop.c
  vendor/resolver/dist/lib/libc/inet/inet_pton.c
  vendor/resolver/dist/lib/libc/inet/nsap_addr.c
  vendor/resolver/dist/lib/libc/isc/ev_streams.c
  vendor/resolver/dist/lib/libc/isc/ev_timers.c
  vendor/resolver/dist/lib/libc/isc/eventlib_p.h
  vendor/resolver/dist/lib/libc/nameser/ns_name.c
  vendor/resolver/dist/lib/libc/nameser/ns_netint.c
  vendor/resolver/dist/lib/libc/nameser/ns_parse.c
  vendor/resolver/dist/lib/libc/nameser/ns_print.c
  vendor/resolver/dist/lib/libc/nameser/ns_samedomain.c
  vendor/resolver/dist/lib/libc/nameser/ns_ttl.c
  vendor/resolver/dist/lib/libc/resolv/herror.c
  vendor/resolver/dist/lib/libc/resolv/res_comp.c
  vendor/resolver/dist/lib/libc/resolv/res_data.c
  vendor/resolver/dist/lib/libc/resolv/res_debug.c
  vendor/resolver/dist/lib/libc/resolv/res_findzonecut.c
  vendor/resolver/dist/lib/libc/resolv/res_init.c
  vendor/resolver/dist/lib/libc/resolv/res_mkquery.c
  vendor/resolver/dist/lib/libc/resolv/res_mkupdate.c
  vendor/resolver/dist/lib/libc/resolv/res_query.c
  vendor/resolver/dist/lib/libc/resolv/res_send.c
  vendor/resolver/dist/lib/libc/resolv/res_update.c

Modified: vendor/resolver/9.5.0/include/arpa/inet.h
==============================================================================
--- vendor/resolver/dist/include/arpa/inet.h    Tue Aug  5 19:43:44 2014        
(r269608)
+++ vendor/resolver/9.5.0/include/arpa/inet.h   Tue Aug  5 23:16:31 2014        
(r269610)
@@ -55,7 +55,7 @@
 
 /*%
  *     @(#)inet.h      8.1 (Berkeley) 6/2/93
- *     $Id: inet.h,v 1.2.18.1 2005/04/27 05:00:50 sra Exp $
+ *     $Id: inet.h,v 1.3 2005/04/27 04:56:16 sra Exp $
  */
 
 #ifndef _INET_H_

Modified: vendor/resolver/9.5.0/include/arpa/nameser.h
==============================================================================
--- vendor/resolver/dist/include/arpa/nameser.h Tue Aug  5 19:43:44 2014        
(r269608)
+++ vendor/resolver/9.5.0/include/arpa/nameser.h        Tue Aug  5 23:16:31 
2014        (r269610)
@@ -1,7 +1,24 @@
 /*
+ * Portions Copyright (C) 2004, 2005, 2008, 2009  Internet Systems Consortium, 
Inc. ("ISC")
+ * Portions Copyright (C) 1996-2003  Internet Software Consortium.
+ *
+ * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC 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.
+ */
+
+/*
  * Copyright (c) 1983, 1989, 1993
  *    The Regents of the University of California.  All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
@@ -17,7 +34,7 @@
  * 4. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -32,24 +49,7 @@
  */
 
 /*
- * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
- * 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 ISC DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC 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.
- */
-
-/*
- *     $Id: nameser.h,v 1.7.18.2 2008/04/03 23:15:15 marka Exp $
+ *     $Id: nameser.h,v 1.16 2009/03/03 01:52:48 each Exp $
  */
 
 #ifndef _ARPA_NAMESER_H_
@@ -75,15 +75,18 @@
  * contains a new enough lib/nameser/ to support the feature you need.
  */
 
-#define __NAMESER      19991006        /*%< New interface version stamp. */
+#define __NAMESER      20090302        /*%< New interface version stamp. */
 /*
  * Define constants based on RFC0883, RFC1034, RFC 1035
  */
 #define NS_PACKETSZ    512     /*%< default UDP packet size */
-#define NS_MAXDNAME    1025    /*%< maximum domain name */
+#define NS_MAXDNAME    1025    /*%< maximum domain name (presentation format)*/
 #define NS_MAXMSG      65535   /*%< maximum message size */
 #define NS_MAXCDNAME   255     /*%< maximum compressed domain name */
 #define NS_MAXLABEL    63      /*%< maximum length of domain label */
+#define NS_MAXLABELS   128     /*%< theoretical max #/labels per domain name */
+#define NS_MAXNNAME    256     /*%< maximum uncompressed (binary) domain name*/
+#define        NS_MAXPADDR     (sizeof 
"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff")
 #define NS_HFIXEDSZ    12      /*%< #/bytes of fixed data in header */
 #define NS_QFIXEDSZ    4       /*%< #/bytes of fixed data in query */
 #define NS_RRFIXEDSZ   10      /*%< #/bytes of fixed data in r record */
@@ -110,6 +113,18 @@ typedef enum __ns_sect {
 } ns_sect;
 
 /*%
+ * Network name (compressed or not) type.  Equivilent to a pointer when used
+ * in a function prototype.  Can be const'd.
+ */
+typedef u_char ns_nname[NS_MAXNNAME];
+typedef const u_char *ns_nname_ct;
+typedef u_char *ns_nname_t;
+
+struct ns_namemap { ns_nname_ct base; int len; };
+typedef struct ns_namemap *ns_namemap_t;
+typedef const struct ns_namemap *ns_namemap_ct;
+
+/*%
  * This is a message handle.  It is caller allocated and has no dynamic data.
  * This structure is intended to be opaque to all but ns_parse.c, thus the
  * leading _'s on the member names.  Use the accessor functions, not the _'s.
@@ -123,6 +138,17 @@ typedef struct __ns_msg {
        const u_char    *_msg_ptr;
 } ns_msg;
 
+/*
+ * This is a newmsg handle, used when constructing new messages with
+ * ns_newmsg_init, et al.
+ */
+struct ns_newmsg {
+       ns_msg          msg;
+       const u_char    *dnptrs[25];
+       const u_char    **lastdnptr;
+};
+typedef struct ns_newmsg ns_newmsg;
+
 /* Private data structure - do not use from outside library. */
 struct _ns_flagdata {  int mask, shift;  };
 extern struct _ns_flagdata _ns_flagdata[];
@@ -147,8 +173,23 @@ typedef    struct __ns_rr {
        const u_char *  rdata;
 } ns_rr;
 
+/*
+ * Same thing, but using uncompressed network binary names, and real C types.
+ */
+typedef        struct __ns_rr2 {
+       ns_nname        nname;
+       size_t          nnamel;
+       int             type;
+       int             rr_class;
+       u_int           ttl;
+       int             rdlength;
+       const u_char *  rdata;
+} ns_rr2;
+
 /* Accessor macros - this is part of the public interface. */
 #define ns_rr_name(rr) (((rr).name[0] != '\0') ? (rr).name : ".")
+#define ns_rr_nname(rr)        ((const ns_nname_t)(rr).nname)
+#define ns_rr_nnamel(rr) ((rr).nnamel + 0)
 #define ns_rr_type(rr) ((ns_type)((rr).type + 0))
 #define ns_rr_class(rr)        ((ns_class)((rr).rr_class + 0))
 #define ns_rr_ttl(rr)  ((rr).ttl + 0)
@@ -223,9 +264,9 @@ typedef enum __ns_update_operation {
  * This structure is used for TSIG authenticated messages
  */
 struct ns_tsig_key {
-        char name[NS_MAXDNAME], alg[NS_MAXDNAME];
-        unsigned char *data;
-        int len;
+       char name[NS_MAXDNAME], alg[NS_MAXDNAME];
+       unsigned char *data;
+       int len;
 };
 typedef struct ns_tsig_key ns_tsig_key;
 
@@ -281,7 +322,7 @@ typedef enum __ns_type {
        ns_t_key = 25,          /*%< Security key. */
        ns_t_px = 26,           /*%< X.400 mail mapping. */
        ns_t_gpos = 27,         /*%< Geographical position (withdrawn). */
-       ns_t_aaaa = 28,         /*%< Ip6 Address. */
+       ns_t_aaaa = 28,         /*%< IPv6 Address. */
        ns_t_loc = 29,          /*%< Location Information. */
        ns_t_nxt = 30,          /*%< Next domain (security). */
        ns_t_eid = 31,          /*%< Endpoint identifier. */
@@ -291,11 +332,22 @@ typedef enum __ns_type {
        ns_t_naptr = 35,        /*%< Naming Authority PoinTeR */
        ns_t_kx = 36,           /*%< Key Exchange */
        ns_t_cert = 37,         /*%< Certification record */
-       ns_t_a6 = 38,           /*%< IPv6 address (deprecates AAAA) */
-       ns_t_dname = 39,        /*%< Non-terminal DNAME (for IPv6) */
+       ns_t_a6 = 38,           /*%< IPv6 address (experimental) */
+       ns_t_dname = 39,        /*%< Non-terminal DNAME */
        ns_t_sink = 40,         /*%< Kitchen sink (experimentatl) */
        ns_t_opt = 41,          /*%< EDNS0 option (meta-RR) */
        ns_t_apl = 42,          /*%< Address prefix list (RFC3123) */
+       ns_t_ds = 43,           /*%< Delegation Signer */
+       ns_t_sshfp = 44,        /*%< SSH Fingerprint */
+       ns_t_ipseckey = 45,     /*%< IPSEC Key */
+       ns_t_rrsig = 46,        /*%< RRset Signature */
+       ns_t_nsec = 47,         /*%< Negative security */
+       ns_t_dnskey = 48,       /*%< DNS Key */
+       ns_t_dhcid = 49,        /*%< Dynamic host configuratin identifier */
+       ns_t_nsec3 = 50,        /*%< Negative security type 3 */
+       ns_t_nsec3param = 51,   /*%< Negative security type 3 parameters */
+       ns_t_hip = 55,          /*%< Host Identity Protocol */
+       ns_t_spf = 99,          /*%< Sender Policy Framework */
        ns_t_tkey = 249,        /*%< Transaction key */
        ns_t_tsig = 250,        /*%< Transaction signature. */
        ns_t_ixfr = 251,        /*%< Incremental zone transfer. */
@@ -304,6 +356,7 @@ typedef enum __ns_type {
        ns_t_maila = 254,       /*%< Transfer mail agent records. */
        ns_t_any = 255,         /*%< Wildcard match. */
        ns_t_zxfr = 256,        /*%< BIND-specific, nonstandard. */
+       ns_t_dlv = 32769,       /*%< DNSSEC look-aside validatation. */
        ns_t_max = 65536
 } ns_type;
 
@@ -482,6 +535,7 @@ typedef enum __ns_cert_types {
 #define ns_initparse           __ns_initparse
 #define ns_skiprr              __ns_skiprr
 #define ns_parserr             __ns_parserr
+#define ns_parserr2            __ns_parserr2
 #define        ns_sprintrr             __ns_sprintrr
 #define        ns_sprintrrf            __ns_sprintrrf
 #define        ns_format_ttl           __ns_format_ttl
@@ -490,12 +544,19 @@ typedef enum __ns_cert_types {
 #define        ns_name_ntol            __ns_name_ntol
 #define        ns_name_ntop            __ns_name_ntop
 #define        ns_name_pton            __ns_name_pton
+#define        ns_name_pton2           __ns_name_pton2
 #define        ns_name_unpack          __ns_name_unpack
+#define        ns_name_unpack2         __ns_name_unpack2
 #define        ns_name_pack            __ns_name_pack
 #define        ns_name_compress        __ns_name_compress
 #define        ns_name_uncompress      __ns_name_uncompress
 #define        ns_name_skip            __ns_name_skip
 #define        ns_name_rollback        __ns_name_rollback
+#define        ns_name_length          __ns_name_length
+#define        ns_name_eq              __ns_name_eq
+#define        ns_name_owned           __ns_name_owned
+#define        ns_name_map             __ns_name_map
+#define        ns_name_labels          __ns_name_labels
 #define        ns_sign                 __ns_sign
 #define        ns_sign2                __ns_sign2
 #define        ns_sign_tcp             __ns_sign_tcp
@@ -509,6 +570,16 @@ typedef enum __ns_cert_types {
 #define        ns_subdomain            __ns_subdomain
 #define        ns_makecanon            __ns_makecanon
 #define        ns_samename             __ns_samename
+#define        ns_newmsg_init          __ns_newmsg_init
+#define        ns_newmsg_copy          __ns_newmsg_copy
+#define        ns_newmsg_id            __ns_newmsg_id
+#define        ns_newmsg_flag          __ns_newmsg_flag
+#define        ns_newmsg_q             __ns_newmsg_q
+#define        ns_newmsg_rr            __ns_newmsg_rr
+#define        ns_newmsg_done          __ns_newmsg_done
+#define        ns_rdata_unpack         __ns_rdata_unpack
+#define        ns_rdata_equal          __ns_rdata_equal
+#define        ns_rdata_refers         __ns_rdata_refers
 
 __BEGIN_DECLS
 int            ns_msg_getflag __P((ns_msg, int));
@@ -519,6 +590,7 @@ void                ns_put32 __P((u_long, u_char *));
 int            ns_initparse __P((const u_char *, int, ns_msg *));
 int            ns_skiprr __P((const u_char *, const u_char *, ns_sect, int));
 int            ns_parserr __P((ns_msg *, ns_sect, int, ns_rr *));
+int            ns_parserr2 __P((ns_msg *, ns_sect, int, ns_rr2 *));
 int            ns_sprintrr __P((const ns_msg *, const ns_rr *,
                                 const char *, const char *, char *, size_t));
 int            ns_sprintrrf __P((const u_char *, size_t, const char *,
@@ -531,8 +603,12 @@ u_int32_t  ns_datetosecs __P((const char 
 int            ns_name_ntol __P((const u_char *, u_char *, size_t));
 int            ns_name_ntop __P((const u_char *, char *, size_t));
 int            ns_name_pton __P((const char *, u_char *, size_t));
+int            ns_name_pton2 __P((const char *, u_char *, size_t, size_t *));
 int            ns_name_unpack __P((const u_char *, const u_char *,
                                    const u_char *, u_char *, size_t));
+int            ns_name_unpack2 __P((const u_char *, const u_char *,
+                                    const u_char *, u_char *, size_t,
+                                    size_t *));
 int            ns_name_pack __P((const u_char *, u_char *, int,
                                  const u_char **, const u_char **));
 int            ns_name_uncompress __P((const u_char *, const u_char *,
@@ -542,6 +618,11 @@ int                ns_name_compress __P((const char *,
 int            ns_name_skip __P((const u_char **, const u_char *));
 void           ns_name_rollback __P((const u_char *, const u_char **,
                                      const u_char **));
+ssize_t                ns_name_length(ns_nname_ct, size_t);
+int            ns_name_eq(ns_nname_ct, size_t, ns_nname_ct, size_t);
+int            ns_name_owned(ns_namemap_ct, int, ns_namemap_ct, int);
+int            ns_name_map(ns_nname_ct, size_t, ns_namemap_t, int);
+int            ns_name_labels(ns_nname_ct, size_t);
 int            ns_sign __P((u_char *, int *, int, int, void *,
                             const u_char *, int, u_char *, int *, time_t));
 int            ns_sign2 __P((u_char *, int *, int, int, void *,
@@ -565,6 +646,25 @@ int                ns_samedomain __P((const char *, co
 int            ns_subdomain __P((const char *, const char *));
 int            ns_makecanon __P((const char *, char *, size_t));
 int            ns_samename __P((const char *, const char *));
+int            ns_newmsg_init(u_char *buffer, size_t bufsiz, ns_newmsg *);
+int            ns_newmsg_copy(ns_newmsg *, ns_msg *);
+void           ns_newmsg_id(ns_newmsg *handle, u_int16_t id);
+void           ns_newmsg_flag(ns_newmsg *handle, ns_flag flag, u_int value);
+int            ns_newmsg_q(ns_newmsg *handle, ns_nname_ct qname,
+                           ns_type qtype, ns_class qclass);
+int            ns_newmsg_rr(ns_newmsg *handle, ns_sect sect,
+                            ns_nname_ct name, ns_type type,
+                            ns_class rr_class, u_int32_t ttl,
+                            u_int16_t rdlen, const u_char *rdata);
+size_t         ns_newmsg_done(ns_newmsg *handle);
+ssize_t                ns_rdata_unpack(const u_char *, const u_char *, ns_type,
+                               const u_char *, size_t, u_char *, size_t);
+int            ns_rdata_equal(ns_type,
+                              const u_char *, size_t,
+                              const u_char *, size_t);
+int            ns_rdata_refers(ns_type,
+                               const u_char *, size_t,
+                               const u_char *);
 __END_DECLS
 
 #ifdef BIND_4_COMPAT

Modified: vendor/resolver/9.5.0/include/arpa/nameser_compat.h
==============================================================================
--- vendor/resolver/dist/include/arpa/nameser_compat.h  Tue Aug  5 19:43:44 
2014        (r269608)
+++ vendor/resolver/9.5.0/include/arpa/nameser_compat.h Tue Aug  5 23:16:31 
2014        (r269610)
@@ -32,7 +32,7 @@
 
 /*%
  *      from nameser.h 8.1 (Berkeley) 6/2/93
- *     $Id: nameser_compat.h,v 1.5.18.3 2006/05/19 02:36:00 marka Exp $
+ *     $Id: nameser_compat.h,v 1.8 2006/05/19 02:33:40 marka Exp $
  */
 
 #ifndef _ARPA_NAMESER_COMPAT_

Added: vendor/resolver/9.5.0/include/hesiod.h
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ vendor/resolver/9.5.0/include/hesiod.h      Tue Aug  5 23:16:31 2014        
(r269610)
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
+ * 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 ISC DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC 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.
+ */
+
+/*! \file 
+ * \brief
+ * This file is primarily maintained by <ty...@mit.edu> and <ghud...@mit.edu>.
+ */
+
+/*
+ * $Id: hesiod.h,v 1.4 2005/04/27 04:56:14 sra Exp $
+ */
+
+#ifndef _HESIOD_H_INCLUDED
+#define _HESIOD_H_INCLUDED
+
+int            hesiod_init __P((void **));
+void           hesiod_end __P((void *));
+char *         hesiod_to_bind __P((void *, const char *, const char *));
+char **                hesiod_resolve __P((void *, const char *, const char 
*));
+void           hesiod_free_list __P((void *, char **));
+struct __res_state * __hesiod_res_get __P((void *));
+void           __hesiod_res_set __P((void *, struct __res_state *,
+                                     void (*)(void *)));
+
+#endif /*_HESIOD_H_INCLUDED*/

Added: vendor/resolver/9.5.0/include/netgroup.h
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ vendor/resolver/9.5.0/include/netgroup.h    Tue Aug  5 23:16:31 2014        
(r269610)
@@ -0,0 +1,26 @@
+#ifndef netgroup_h
+#define netgroup_h
+#ifndef __GLIBC__
+
+/*
+ * The standard is crazy.  These values "belong" to getnetgrent() and
+ * shouldn't be altered by the caller.
+ */
+int getnetgrent __P((/* const */ char **, /* const */ char **,
+                    /* const */ char **));
+
+int getnetgrent_r __P((char **, char **, char **, char *, int));
+
+void endnetgrent __P((void));
+
+#ifdef __osf__
+int innetgr __P((char *, char *, char *, char *));
+void setnetgrent __P((char *));
+#else
+void setnetgrent __P((const char *));
+int innetgr __P((const char *, const char *, const char *, const char *));
+#endif
+#endif
+#endif
+
+/*! \file */

Modified: vendor/resolver/9.5.0/include/res_update.h
==============================================================================
--- vendor/resolver/dist/include/res_update.h   Tue Aug  5 19:43:44 2014        
(r269608)
+++ vendor/resolver/9.5.0/include/res_update.h  Tue Aug  5 23:16:31 2014        
(r269610)
@@ -16,7 +16,7 @@
  */
 
 /*
- *     $Id: res_update.h,v 1.2.18.1 2005/04/27 05:00:49 sra Exp $
+ *     $Id: res_update.h,v 1.3 2005/04/27 04:56:15 sra Exp $
  */
 
 #ifndef __RES_UPDATE_H

Modified: vendor/resolver/9.5.0/include/resolv.h
==============================================================================
--- vendor/resolver/dist/include/resolv.h       Tue Aug  5 19:43:44 2014        
(r269608)
+++ vendor/resolver/9.5.0/include/resolv.h      Tue Aug  5 23:16:31 2014        
(r269610)
@@ -1,7 +1,24 @@
 /*
+ * Portions Copyright (C) 2004, 2005, 2008, 2009  Internet Systems Consortium, 
Inc. ("ISC")
+ * Portions Copyright (C) 1995-2003  Internet Software Consortium.
+ *
+ * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC 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.
+ */
+
+/*
  * Copyright (c) 1983, 1987, 1989
  *    The Regents of the University of California.  All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
@@ -17,7 +34,7 @@
  * 4. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -31,26 +48,9 @@
  * SUCH DAMAGE.
  */
 
-/*
- * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
- * Portions 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 ISC DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC 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.
- */
-
 /*%
  *     @(#)resolv.h    8.1 (Berkeley) 6/2/93
- *     $Id: resolv.h,v 1.19.18.4 2008/04/03 23:15:15 marka Exp $
+ *     $Id: resolv.h,v 1.30 2009/03/03 01:52:48 each Exp $
  */
 
 #ifndef _RESOLV_H_
@@ -75,7 +75,7 @@
  * is new enough to contain a certain feature.
  */
 
-#define        __RES   20030124
+#define        __RES   20090302
 
 /*%
  * This used to be defined in res_query.c, now it's in herror.c.
@@ -185,10 +185,11 @@ struct __res_state {
        int     res_h_errno;            /*%< last one set for this context */
        int     _vcsock;                /*%< PRIVATE: for res_send VC i/o */
        u_int   _flags;                 /*%< PRIVATE: see below */
+       u_char  _rnd[16];               /*%< PRIVATE: random state */
        u_int   _pad;                   /*%< make _u 64 bit aligned */
        union {
                /* On an 32-bit arch this means 512b total. */
-               char    pad[72 - 4*sizeof (int) - 2*sizeof (void *)];
+               char    pad[56 - 4*sizeof (int) - 2*sizeof (void *)];
                struct {
                        u_int16_t               nscount;
                        u_int16_t               nstimes[MAXNS]; /*%< ms. */
@@ -338,7 +339,7 @@ __END_DECLS
 #if !defined(SHARED_LIBBIND) || defined(LIB)
 /*
  * If libbind is a shared object (well, DLL anyway)
- * these externs break the linker when resolv.h is 
+ * these externs break the linker when resolv.h is
  * included by a lib client (like named)
  * Make them go away if a client is including this
  *
@@ -392,7 +393,9 @@ extern const struct res_sym __p_rcode_sy
 #define res_nisourserver       __res_nisourserver
 #define res_ownok              __res_ownok
 #define res_queriesmatch       __res_queriesmatch
+#define res_rndinit            __res_rndinit
 #define res_randomid           __res_randomid
+#define res_nrandomid          __res_nrandomid
 #define sym_ntop               __sym_ntop
 #define sym_ntos               __sym_ntos
 #define sym_ston               __sym_ston
@@ -451,7 +454,9 @@ int         dn_comp __P((const char *, u_char *
                             u_char **, u_char **));
 int            dn_expand __P((const u_char *, const u_char *, const u_char *,
                               char *, int));
+void           res_rndinit __P((res_state));
 u_int          res_randomid __P((void));
+u_int          res_nrandomid __P((res_state));
 int            res_nameinquery __P((const char *, int, int, const u_char *,
                                     const u_char *));
 int            res_queriesmatch __P((const u_char *, const u_char *,

Added: vendor/resolver/9.5.0/lib/libc/include/fd_setsize.h
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ vendor/resolver/9.5.0/lib/libc/include/fd_setsize.h Tue Aug  5 23:16:31 
2014        (r269610)
@@ -0,0 +1,10 @@
+#ifndef _FD_SETSIZE_H
+#define _FD_SETSIZE_H
+
+/*%
+ * If you need a bigger FD_SETSIZE, this is NOT the place to set it.
+ * This file is a fallback for BIND ports which don't specify their own.
+ */
+
+#endif /* _FD_SETSIZE_H */
+/*! \file */

Added: vendor/resolver/9.5.0/lib/libc/include/isc/assertions.h
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ vendor/resolver/9.5.0/lib/libc/include/isc/assertions.h     Tue Aug  5 
23:16:31 2014        (r269610)
@@ -0,0 +1,123 @@
+/*
+ * Copyright (C) 2004, 2005, 2008  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 1997-2001  Internet Software Consortium.
+ *
+ * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC 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.
+ */
+
+/*
+ * $Id: assertions.h,v 1.5 2008/11/14 02:36:51 marka Exp $
+ */
+
+#ifndef ASSERTIONS_H
+#define ASSERTIONS_H           1
+
+typedef enum {
+       assert_require, assert_ensure, assert_insist, assert_invariant
+} assertion_type;
+
+typedef void (*assertion_failure_callback)(const char *, int, assertion_type,
+                                          const char *, int);
+
+/* coverity[+kill] */
+extern assertion_failure_callback __assertion_failed;
+void set_assertion_failure_callback(assertion_failure_callback f);
+const char *assertion_type_to_text(assertion_type type);
+
+#if defined(CHECK_ALL) || defined(__COVERITY__)
+#define CHECK_REQUIRE          1
+#define CHECK_ENSURE           1
+#define CHECK_INSIST           1
+#define CHECK_INVARIANT                1
+#endif
+
+#if defined(CHECK_NONE) && !defined(__COVERITY__)
+#define CHECK_REQUIRE          0
+#define CHECK_ENSURE           0
+#define CHECK_INSIST           0
+#define CHECK_INVARIANT                0
+#endif
+
+#ifndef CHECK_REQUIRE
+#define CHECK_REQUIRE          1
+#endif
+
+#ifndef CHECK_ENSURE
+#define CHECK_ENSURE           1
+#endif
+
+#ifndef CHECK_INSIST
+#define CHECK_INSIST           1
+#endif
+
+#ifndef CHECK_INVARIANT
+#define CHECK_INVARIANT                1
+#endif
+
+#if CHECK_REQUIRE != 0
+#define REQUIRE(cond) \
+       ((void) ((cond) || \
+                ((__assertion_failed)(__FILE__, __LINE__, assert_require, \
+                                      #cond, 0), 0)))
+#define REQUIRE_ERR(cond) \
+       ((void) ((cond) || \
+                ((__assertion_failed)(__FILE__, __LINE__, assert_require, \
+                                      #cond, 1), 0)))
+#else
+#define REQUIRE(cond)          ((void) (cond))
+#define REQUIRE_ERR(cond)      ((void) (cond))
+#endif /* CHECK_REQUIRE */
+
+#if CHECK_ENSURE != 0
+#define ENSURE(cond) \
+       ((void) ((cond) || \
+                ((__assertion_failed)(__FILE__, __LINE__, assert_ensure, \
+                                      #cond, 0), 0)))
+#define ENSURE_ERR(cond) \
+       ((void) ((cond) || \
+                ((__assertion_failed)(__FILE__, __LINE__, assert_ensure, \
+                                      #cond, 1), 0)))
+#else
+#define ENSURE(cond)           ((void) (cond))
+#define ENSURE_ERR(cond)       ((void) (cond))
+#endif /* CHECK_ENSURE */
+
+#if CHECK_INSIST != 0
+#define INSIST(cond) \
+       ((void) ((cond) || \
+                ((__assertion_failed)(__FILE__, __LINE__, assert_insist, \
+                                      #cond, 0), 0)))
+#define INSIST_ERR(cond) \
+       ((void) ((cond) || \
+                ((__assertion_failed)(__FILE__, __LINE__, assert_insist, \
+                                      #cond, 1), 0)))
+#else
+#define INSIST(cond)           ((void) (cond))
+#define INSIST_ERR(cond)       ((void) (cond))
+#endif /* CHECK_INSIST */
+
+#if CHECK_INVARIANT != 0
+#define INVARIANT(cond) \
+       ((void) ((cond) || \
+                ((__assertion_failed)(__FILE__, __LINE__, assert_invariant, \
+                                      #cond, 0), 0)))
+#define INVARIANT_ERR(cond) \
+       ((void) ((cond) || \
+                ((__assertion_failed)(__FILE__, __LINE__, assert_invariant, \
+                                      #cond, 1), 0)))
+#else
+#define INVARIANT(cond)                ((void) (cond))
+#define INVARIANT_ERR(cond)    ((void) (cond))
+#endif /* CHECK_INVARIANT */
+#endif /* ASSERTIONS_H */
+/*! \file */

Added: vendor/resolver/9.5.0/lib/libc/include/isc/dst.h
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ vendor/resolver/9.5.0/lib/libc/include/isc/dst.h    Tue Aug  5 23:16:31 
2014        (r269610)
@@ -0,0 +1,168 @@
+#ifndef DST_H
+#define DST_H
+
+#ifndef HAS_DST_KEY
+typedef struct dst_key {
+       char    *dk_key_name;   /*%< name of the key */
+       int     dk_key_size;    /*%< this is the size of the key in bits */
+       int     dk_proto;       /*%< what protocols this key can be used for */
+       int     dk_alg;         /*%< algorithm number from key record */
+       u_int32_t dk_flags;     /*%< and the flags of the public key */
+       u_int16_t dk_id;        /*%< identifier of the key */
+} DST_KEY;
+#endif /* HAS_DST_KEY */
+/*
+ * do not taint namespace
+ */
+#define        dst_bsafe_init          __dst_bsafe_init
+#define        dst_buffer_to_key       __dst_buffer_to_key
+#define        dst_check_algorithm     __dst_check_algorithm
+#define        dst_compare_keys        __dst_compare_keys
+#define        dst_cylink_init         __dst_cylink_init
+#define        dst_dnskey_to_key       __dst_dnskey_to_key
+#define        dst_eay_dss_init        __dst_eay_dss_init
+#define        dst_free_key            __dst_free_key
+#define        dst_generate_key        __dst_generate_key
+#define        dst_hmac_md5_init       __dst_hmac_md5_init
+#define        dst_init                __dst_init
+#define        dst_key_to_buffer       __dst_key_to_buffer
+#define        dst_key_to_dnskey       __dst_key_to_dnskey
+#define        dst_read_key            __dst_read_key
+#define        dst_rsaref_init         __dst_rsaref_init
+#define        dst_s_build_filename    __dst_s_build_filename
+#define        dst_s_calculate_bits    __dst_s_calculate_bits
+#define        dst_s_conv_bignum_b64_to_u8     __dst_s_conv_bignum_b64_to_u8
+#define        dst_s_conv_bignum_u8_to_b64     __dst_s_conv_bignum_u8_to_b64
+#define        dst_s_dns_key_id        __dst_s_dns_key_id
+#define        dst_s_dump              __dst_s_dump
+#define        dst_s_filename_length   __dst_s_filename_length
+#define        dst_s_fopen             __dst_s_fopen
+#define        dst_s_get_int16         __dst_s_get_int16
+#define        dst_s_get_int32         __dst_s_get_int32
+#define        dst_s_id_calc           __dst_s_id_calc
+#define        dst_s_put_int16         __dst_s_put_int16
+#define        dst_s_put_int32         __dst_s_put_int32
+#define        dst_s_quick_random      __dst_s_quick_random
+#define        dst_s_quick_random_set  __dst_s_quick_random_set
+#define        dst_s_random            __dst_s_random
+#define        dst_s_semi_random       __dst_s_semi_random
+#define        dst_s_verify_str        __dst_s_verify_str
+#define        dst_sig_size            __dst_sig_size
+#define        dst_sign_data           __dst_sign_data
+#define        dst_verify_data         __dst_verify_data
+#define        dst_write_key           __dst_write_key
+
+/* 
+ * DST Crypto API defintions 
+ */
+void     dst_init(void);
+int      dst_check_algorithm(const int);
+
+
+int dst_sign_data(const int,           /*!<   specifies INIT/UPDATE/FINAL/ALL  
*/
+                 DST_KEY *,            /*!<   the key to use  */
+                 void **,              /*!<   pointer to state structure  */
+                 const u_char *,       /*!<   data to be signed  */
+                 const int,            /*!<   length of input data  */
+                 u_char *,             /*!<   buffer to write signature to  */
+                 const int);           /*!<   size of output buffer  */
+int dst_verify_data(const int,         /*!<   specifies INIT/UPDATE/FINAL/ALL  
*/
+                   DST_KEY *,          /*!<   the key to use  */
+                   void **,            /*!<   pointer to state structure  */
+                   const u_char *,     /*!<   data to be verified  */
+                   const int,          /*!<   length of input data  */
+                   const u_char *,     /*!<   buffer containing signature  */
+                   const int);         /*!<   length of signature  */
+DST_KEY *dst_read_key(const char *,    /*!<   name of key  */
+                     const u_int16_t,  /*!<   key tag identifier  */
+                     const int,        /*!<   key algorithm  */
+                     const int);       /*!<   Private/PublicKey wanted */
+int      dst_write_key(const DST_KEY *,        /*!<   key to write out  */
+                      const int);      /*!<   Public/Private  */
+DST_KEY *dst_dnskey_to_key(const char *,       /*!<   KEY record name  */
+                          const u_char *,      /*!<   KEY RDATA  */
+                          const int);          /*!<   size of input buffer */
+int      dst_key_to_dnskey(const DST_KEY *,    /*!<   key to translate  */
+                          u_char *,            /*!<   output buffer  */
+                          const int);          /*!<   size of out_storage */
+DST_KEY *dst_buffer_to_key(const char *,       /*!<   name of the key  */
+                          const int,           /*!<   algorithm  */
+                          const int,           /*!<   dns flags  */
+                          const int,           /*!<   dns protocol  */
+                          const u_char *,      /*!<   key in dns wire fmt  */
+                          const int);          /*!<   size of key  */
+int     dst_key_to_buffer(DST_KEY *, u_char *, int);
+
+DST_KEY *dst_generate_key(const char *,        /*!<   name of new key  */
+                         const int,            /*!<   key algorithm to 
generate  */
+                         const int,            /*!<   size of new key  */
+                         const int,            /*!<   alg dependent parameter 
*/
+                         const int,            /*!<   key DNS flags  */
+                         const int);           /*!<   key DNS protocol  */
+DST_KEY *dst_free_key(DST_KEY *);
+int      dst_compare_keys(const DST_KEY *, const DST_KEY *);
+
+int    dst_sig_size(DST_KEY *);
+
+
+/* support for dns key tags/ids */
+u_int16_t dst_s_dns_key_id(const u_char *, const int);
+u_int16_t dst_s_id_calc(const u_char *, const int);
+
+/* Used by callers as well as by the library.  */
+#define RAW_KEY_SIZE    8192        /*%< large enough to store any key */
+/* DST_API control flags */
+/* These are used used in functions dst_sign_data and dst_verify_data */
+#define SIG_MODE_INIT          1  /*%< initialize digest */
+#define SIG_MODE_UPDATE                2  /*%< add data to digest */
+#define SIG_MODE_FINAL         4  /*%< generate/verify signature */
+#define SIG_MODE_ALL           (SIG_MODE_INIT|SIG_MODE_UPDATE|SIG_MODE_FINAL)
+
+/* Flags for dst_read_private_key()  */
+#define DST_FORCE_READ         0x1000000
+#define DST_CAN_SIGN           0x010F
+#define DST_NO_AUTHEN          0x8000
+#define DST_EXTEND_FLAG         0x1000
+#define DST_STANDARD           0
+#define DST_PRIVATE             0x2000000
+#define DST_PUBLIC              0x4000000
+#define DST_RAND_SEMI           1
+#define DST_RAND_STD            2
+#define DST_RAND_KEY            3
+#define DST_RAND_DSS            4
+
+
+/* DST algorithm codes */
+#define KEY_RSA                        1
+#define KEY_DH                 2
+#define KEY_DSA                        3
+#define KEY_PRIVATE            254
+#define KEY_EXPAND             255
+#define KEY_HMAC_MD5           157
+#define KEY_HMAC_SHA1          158
+#define UNKNOWN_KEYALG         0
+#define DST_MAX_ALGS            KEY_HMAC_SHA1
+
+/* DST constants to locations in KEY record  changes in new KEY record */
+#define DST_FLAGS_SIZE         2
+#define DST_KEY_PROT           2
+#define DST_KEY_ALG            3
+#define DST_EXT_FLAG            4
+#define DST_KEY_START          4
+
+#ifndef SIGN_F_NOKEY 
+#define SIGN_F_NOKEY           0xC000
+#endif
+
+/* error codes from dst routines */
+#define SIGN_INIT_FAILURE      (-23)
+#define SIGN_UPDATE_FAILURE    (-24)
+#define SIGN_FINAL_FAILURE     (-25)
+#define VERIFY_INIT_FAILURE    (-26)
+#define VERIFY_UPDATE_FAILURE  (-27)
+#define VERIFY_FINAL_FAILURE   (-28)
+#define MISSING_KEY_OR_SIGNATURE (-30)
+#define UNSUPPORTED_KEYALG     (-31)
+
+#endif /* DST_H */
+/*! \file */

Modified: vendor/resolver/9.5.0/lib/libc/include/isc/eventlib.h
==============================================================================
--- vendor/resolver/dist/lib/libc/include/isc/eventlib.h        Tue Aug  5 
19:43:44 2014        (r269608)
+++ vendor/resolver/9.5.0/lib/libc/include/isc/eventlib.h       Tue Aug  5 
23:16:31 2014        (r269610)
@@ -1,24 +1,24 @@
 /*
- * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
- * Copyright (c) 1995-1999 by Internet Software Consortium
+ * Copyright (C) 2004, 2005, 2008  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 1995-1999, 2001, 2003  Internet Software Consortium.
  *
- * Permission to use, copy, modify, and distribute this software for any
+ * Permission to use, copy, modify, and/or 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 ISC DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC 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.
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC 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.
  */
 
 /* eventlib.h - exported interfaces for eventlib
  * vix 09sep95 [initial]
  *
- * $Id: eventlib.h,v 1.3.18.3 2008/01/23 02:12:01 marka Exp $
+ * $Id: eventlib.h,v 1.7 2008/11/14 02:36:51 marka Exp $
  */
 
 #ifndef _EVENTLIB_H

Added: vendor/resolver/9.5.0/lib/libc/include/isc/heap.h
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ vendor/resolver/9.5.0/lib/libc/include/isc/heap.h   Tue Aug  5 23:16:31 
2014        (r269610)
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 1997,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 ISC DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC 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.
+ */
+
+typedef int (*heap_higher_priority_func)(void *, void *);
+typedef void (*heap_index_func)(void *, int);
+typedef void (*heap_for_each_func)(void *, void *);
+
+typedef struct heap_context {
+       int array_size;
+       int array_size_increment;
+       int heap_size;
+       void **heap;
+       heap_higher_priority_func higher_priority;
+       heap_index_func index;
+} *heap_context;
+
+#define heap_new       __heap_new
+#define heap_free      __heap_free
+#define heap_insert    __heap_insert
+#define heap_delete    __heap_delete
+#define heap_increased __heap_increased
+#define heap_decreased __heap_decreased
+#define heap_element   __heap_element
+#define heap_for_each  __heap_for_each
+
+heap_context   heap_new(heap_higher_priority_func, heap_index_func, int);
+int            heap_free(heap_context);
+int            heap_insert(heap_context, void *);
+int            heap_delete(heap_context, int);
+int            heap_increased(heap_context, int);
+int            heap_decreased(heap_context, int);
+void *         heap_element(heap_context, int);
+int            heap_for_each(heap_context, heap_for_each_func, void *);
+
+/*! \file */

Modified: vendor/resolver/9.5.0/lib/libc/include/isc/list.h
==============================================================================
--- vendor/resolver/dist/lib/libc/include/isc/list.h    Tue Aug  5 19:43:44 
2014        (r269608)
+++ vendor/resolver/9.5.0/lib/libc/include/isc/list.h   Tue Aug  5 23:16:31 
2014        (r269610)
@@ -31,7 +31,8 @@
        } while (0)
 #define INIT_LINK(elt, link) \
        INIT_LINK_TYPE(elt, link, void)
-#define LINKED(elt, link) ((void *)((elt)->link.prev) != (void *)(-1))
+#define LINKED(elt, link) ((void *)((elt)->link.prev) != (void *)(-1) && \
+                          (void *)((elt)->link.next) != (void *)(-1))
 
 #define HEAD(list) ((list).head)
 #define TAIL(list) ((list).tail)

Added: vendor/resolver/9.5.0/lib/libc/include/isc/memcluster.h
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ vendor/resolver/9.5.0/lib/libc/include/isc/memcluster.h     Tue Aug  5 
23:16:31 2014        (r269610)
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 1997,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 ISC DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC 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.
+ */
+
+#ifndef MEMCLUSTER_H
+#define MEMCLUSTER_H
+
+#include <stdio.h>
+
+#define meminit                __meminit
+#ifdef MEMCLUSTER_DEBUG
+#define memget(s)      __memget_debug(s, __FILE__, __LINE__)
+#define memput(p, s)   __memput_debug(p, s, __FILE__, __LINE__)
+#else /*MEMCLUSTER_DEBUG*/
+#ifdef MEMCLUSTER_RECORD
+#define memget(s)      __memget_record(s, __FILE__, __LINE__)
+#define memput(p, s)   __memput_record(p, s, __FILE__, __LINE__)
+#else /*MEMCLUSTER_RECORD*/
+#define memget         __memget
+#define memput         __memput
+#endif /*MEMCLUSTER_RECORD*/
+#endif /*MEMCLUSTER_DEBUG*/
+#define memstats       __memstats
+#define memactive      __memactive
+
+int    meminit(size_t, size_t);
+void * __memget(size_t);
+void   __memput(void *, size_t);
+void * __memget_debug(size_t, const char *, int);
+void   __memput_debug(void *, size_t, const char *, int);
+void * __memget_record(size_t, const char *, int);
+void   __memput_record(void *, size_t, const char *, int);
+void   memstats(FILE *);
+int    memactive(void);
+
+#endif /* MEMCLUSTER_H */
+/*! \file */

Modified: vendor/resolver/9.5.0/lib/libc/inet/inet_addr.c
==============================================================================
--- vendor/resolver/dist/lib/libc/inet/inet_addr.c      Tue Aug  5 19:43:44 
2014        (r269608)
+++ vendor/resolver/9.5.0/lib/libc/inet/inet_addr.c     Tue Aug  5 23:16:31 
2014        (r269610)
@@ -70,7 +70,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static const char sccsid[] = "@(#)inet_addr.c  8.1 (Berkeley) 6/17/93";
-static const char rcsid[] = "$Id: inet_addr.c,v 1.4.18.1 2005/04/27 05:00:52 
sra Exp $";
+static const char rcsid[] = "$Id: inet_addr.c,v 1.5 2005/04/27 04:56:19 sra 
Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 #include "port_before.h"

*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to