diff --git a/spec/getdns-0.389.tgz b/spec/getdns-0.389.tgz deleted file mode 100644 index f71168c3..00000000 Binary files a/spec/getdns-0.389.tgz and /dev/null differ diff --git a/spec/getdns-0.390.tgz b/spec/getdns-0.390.tgz new file mode 100644 index 00000000..4671ffce Binary files /dev/null and b/spec/getdns-0.390.tgz differ diff --git a/spec/getdns_core_only.c b/spec/getdns_core_only.c index a0cdbf8c..79ad366b 100644 --- a/spec/getdns_core_only.c +++ b/spec/getdns_core_only.c @@ -355,7 +355,7 @@ getdns_context_set_limit_outstanding_queries( getdns_return_t getdns_context_set_timeout( struct getdns_context *context, - uint16_t timeout + unsigned int timeout ) { UNUSED_PARAM(context); UNUSED_PARAM(timeout); return GETDNS_RETURN_GOOD; } @@ -397,7 +397,7 @@ getdns_context_set_dnssec_trust_anchors( getdns_return_t getdns_context_set_dnssec_allowed_skew( struct getdns_context *context, - uint16_t value + unsigned int value ) { UNUSED_PARAM(context); UNUSED_PARAM(value); return GETDNS_RETURN_GOOD; } diff --git a/spec/getdns_core_only.h b/spec/getdns_core_only.h index 644bc00b..1f790ab2 100644 --- a/spec/getdns_core_only.h +++ b/spec/getdns_core_only.h @@ -1,4 +1,4 @@ -/* Created at 2014-02-06-00-25-11*/ +/* Created at 2014-02-08-16-06-49*/ #ifndef GETDNS_H #define GETDNS_H @@ -542,7 +542,7 @@ getdns_context_set_limit_outstanding_queries( getdns_return_t getdns_context_set_timeout( struct getdns_context *context, - uint16_t timeout + uint64_t timeout ); getdns_return_t @@ -578,7 +578,7 @@ getdns_context_set_dnssec_trust_anchors( getdns_return_t getdns_context_set_dnssec_allowed_skew( struct getdns_context *context, - uint16_t value + uint32_t value ); getdns_return_t diff --git a/spec/index.html b/spec/index.html index b4993d76..356896c1 100644 --- a/spec/index.html +++ b/spec/index.html @@ -97,7 +97,7 @@ tr.code { font-family: monospace }

Description of the getdns API

Paul Hoffman, Editor

-

Document version: "getdns December 2013"

+

Document version: "getdns Februari 2014"

This document describes a modern asynchronous DNS API. This new API is intended to be useful to application developers and operating system distributors as a way of making @@ -1757,11 +1757,11 @@ struct getdns_dict * this_extensions = getdns_dict_create(); this_ret = getdns_dict_set_int(this_extensions, "return_both_v4_and_v6", GETDNS_EXTENSION_TRUE); this_ret = getdns_dict_set_int(this_extensions, "dnssec_return_status", GETDNS_EXTENSION_TRUE); . . . -if (*this_type == GETDNS_RRTYPE_A) +if (this_type == GETDNS_RRTYPE_A) { uint32_t * this_dnssec_status; - this_ret = getdns_dict_get_int(this_rdata, "dnssec_status", this_dnssec_status); - if (&this_dnssec_status != GETDNS_DNSSEC_SECURE) + this_ret = getdns_dict_get_int(this_rdata, "dnssec_status", &this_dnssec_status); + if (this_dnssec_status != GETDNS_DNSSEC_SECURE) { // Log the DNSSEC status somewhere } @@ -2208,9 +2208,9 @@ the number of outstanding DNS queries is unlimited.

getdns_return_t getdns_context_set_timeout( struct getdns_context *context, - uint16_t timeout + uint64_t timeout ); -

Specifies number of seconds the API will wait for request to return. +

Specifies number of milliseconds the API will wait for request to return. The default is not specified.

8.4 Context for Recursive Resolvers

@@ -2286,7 +2286,7 @@ are expressed as RDATAs from DNSKEY resource records.

getdns_return_t getdns_context_set_dnssec_allowed_skew( struct getdns_context *context, - uint16_t value + uint32_t value );

The value is the number of seconds of skew that is allowed in either direction when checking an RRSIG's Expiration and Inception fields. The default @@ -2426,7 +2426,7 @@ The response dicts inherit the custom memory management functions and the value

9. The Generated Files

-

There is a tarball that includes the .h files, +

There is a tarball that includes the .h files, the examples, and so on. The examples all make, even though there is no API implementation, based on a pseudo-implementation in the tarball; see make-examples-PLATFORM.sh. Note that this currently builds fine on the Macintosh and Ubuntu; help is definitely appreciated on making the build process