Daniel Kahn Gillmor
b3128652f4
add tls_query_padding_blocksize property for getdns_context
...
This is a parameter to the getdns_context that tells the context how
much to pad queries that go out over TLS.
It is not yet functional in this commit, but the idea is to pad each
outbound query over TLS to a multiple of the requested blocksize.
Because we only have a set amount of pre-allocated space for dynamic
options (MAXIMUM_UPSTREAM_OPTION_SPACE), we limit the maximum
padding blocksize.
This is a simplistic padding policy. Suggestions for improved padding
policies are welcome!
2015-11-01 15:49:56 +09:00
Daniel Kahn Gillmor
8291cdb455
add -c flag for EDNS Client Subnet privacy to getdns_query
2015-11-01 15:49:56 +09:00
Daniel Kahn Gillmor
05585281eb
add test for context update callback for edns_client_subnet_private
2015-11-01 15:49:56 +09:00
Willem Toorop
fb6642d6a5
Print response dict when there is one
2015-10-31 17:59:14 +09:00
Willem Toorop
9ce441e59a
--enable-debug-sched for getdns_query too
2015-10-31 16:24:49 +09:00
Willem Toorop
8c3d348f05
Help text typo
2015-10-27 16:43:25 +01:00
Willem Toorop
98a2c497d2
ldns CFLAGS for tests (+ make deps)
2015-10-22 13:46:23 +02:00
Willem Toorop
b88c74b4c8
Synchronize with October 2015 spec
2015-10-22 12:02:04 +02:00
Willem Toorop
7647005285
Report memory errors in json-pointers test
2015-10-21 16:01:16 +02:00
Willem Toorop
3cc44ffcb1
Merge remote-tracking branch 'sara/feature/tls_auth_api' into features/tls_auth_api
2015-10-21 15:34:57 +02:00
Sara Dickinson
3be47edbb3
More cleanup
2015-10-16 18:40:33 +01:00
Sara Dickinson
b74c62066c
Cleanup
2015-10-16 18:31:57 +01:00
Sara Dickinson
28ffb2fdf6
Add ls_authentication to API
2015-10-16 17:00:14 +01:00
Sara Dickinson
af617e92a7
Implement authenticaiton fallback on a given upstream (needs more work). Also need API option to set auth requirement.
2015-10-16 17:00:14 +01:00
Sara Dickinson
e710286e45
Start work on better authentication
2015-10-16 16:57:13 +01:00
Willem Toorop
d0a80925c2
Bugfixes for setting with json pointers
...
+ scratchpad for developing/debugging
2015-10-08 12:54:30 +02:00
Willem Toorop
7bf481d812
ldns still (but only) needed for unit tests
2015-09-28 11:44:39 +02:00
Willem Toorop
53e23f1358
Revert "Revert "Merge pull request #112 from saradickinson/features/tls_auth""
...
This reverts commit 6d29e6044e
.
2015-09-04 10:56:30 +02:00
Willem Toorop
0e66d28be8
Set processing flag around user callbacks
...
To fix destroying contexts from user callbacks in stub mode.
The complete test suite runs in stub mode now too.
2015-09-03 15:07:29 +02:00
Willem Toorop
6d13ec19cd
--with-getdns_query configure option +
...
make pub target (for signing and hashing dist tarball) +
make megaclean target (for erasing all source and git reset --hard)
2015-08-28 13:33:02 +02:00
Willem Toorop
6d29e6044e
Revert "Merge pull request #112 from saradickinson/features/tls_auth"
...
This reverts commit d436165a88
, reversing
changes made to 7c902bf73c
.
2015-08-27 13:31:22 +02:00
Willem Toorop
55aa759730
Don't spawn extra process for recursion calls
2015-08-27 13:22:24 +02:00
Willem Toorop
6446643396
Get lines via custom eventloop
2015-08-26 22:25:42 +02:00
Willem Toorop
32e4e8fa9d
Debug custom event loop
2015-08-26 17:01:28 +02:00
Willem Toorop
4ecf6b23dc
First round of bugfixes in custom eventloop
2015-08-26 16:13:25 +02:00
Willem Toorop
c86df63b7a
Custom event loop in getdns_query
2015-08-26 14:32:46 +02:00
Willem Toorop
b9e8455e27
Internal symbols always prefixed with _getdns
2015-08-19 16:30:15 +02:00
Sara Dickinson
2404cc2c8e
Extend regression test
2015-08-15 15:27:58 +01:00
saradickinson
cb1dff1ac7
Add ability to verify server certificate using hostname for TLS/STARTTLS
...
NOTE: This implementation will only work for OpenSSL v1.0.2 and later.
Doing it for earlier versions is totally insane:
https://wiki.openssl.org/index.php/Hostname_validation
2015-08-15 14:40:15 +01:00
Sara Dickinson
8beace7036
Fix location in manual test script. Add build/ to .gitignore
2015-08-15 14:36:36 +01:00
Sara Dickinson
ab60211020
Fix fallback failures. Add manual regression test script.
2015-08-12 11:42:02 +01:00
Willem Toorop
d52b10e703
Fix builddir/srcdir for tests
2015-07-19 12:15:28 +02:00
Willem Toorop
e91f7d53b5
Correct getdns_extra.h location for tests too
2015-07-19 11:48:24 +02:00
Willem Toorop
cacd8951ff
getdns_query -k to test for root trust anchor
...
has exit status 0 on success, 1 otherwise.
2015-07-09 23:10:22 +02:00
Willem Toorop
201b6af9a2
clang compiler warnings + 1 bug!
...
Bug is countring insecure answers in util-internal.c
found by clang warning reporting
2015-07-08 13:07:24 +02:00
Willem Toorop
a5bacfefcf
memory leak fixes
2015-07-08 11:07:44 +02:00
Willem Toorop
e571883811
Fix test for NODATA address_sync lookup
...
hampster.com no longer suitable anymore.
2015-07-07 11:46:52 +02:00
Willem Toorop
f066d5ef73
Merge branch 'features/native-stub-dnssec' into develop
...
Conflicts:
configure.ac
src/stub.c
2015-07-02 10:27:27 +02:00
Willem Toorop
6cffc4792b
Validate replies with getdns_validate_dnssec
...
You can feed it the replies_tree as the records to validate list
2015-07-02 00:25:41 +02:00
Willem Toorop
2b3aa84337
getdns_query show output of getdns_validate_dnssec
2015-07-01 14:38:24 +02:00
Sara Dickinson
cb5bbac26d
Do better with unbound transport mapping and fix problems with sync fallback
2015-06-25 20:21:00 +01:00
Sara Dickinson
8819d29535
Implement TCP fallback and hack for lack of sync idle timeout.
2015-06-24 18:49:34 +01:00
Sara Dickinson
c9a0ffc7a5
Improve error reporting in getdns_query.
2015-06-23 17:01:43 +01:00
Sara Dickinson
c425f96e0b
Fix TLS handshake for sync messages.
2015-06-23 15:39:56 +01:00
Sara Dickinson
b73b5b2792
Fix some bugs...
2015-06-21 16:55:12 +01:00
Sara Dickinson
635cf9e182
Re-factor of internal handing of transport list.
2015-06-19 18:28:29 +01:00
Sara Dickinson
0acdcc34b0
Changelog, idle_timeout test, formatting
2015-06-18 17:29:23 +01:00
Sara Dickinson
68dfb15706
Add context idle timeout
2015-06-18 17:11:11 +01:00
Sara Dickinson
8dd8d90e74
Commit addition of transport list to the API.
...
- set and get functions are added.
- Existing transport functions retained for backwards compatibility.
- Basic combinations work as before, but underlying functional changes and cleanup are not complete yet...
- Context level options for timeouts and max_transactions_per_tcp_connection coming soon...
2015-06-17 17:18:09 +01:00
Willem Toorop
d5f70ab904
rm spurious execute bits +unit test to detect them
...
Thanks Paul Wouters
2015-05-26 14:16:27 +02:00
saradickinson
3ac5e660f9
Address few minor bugs pointed out by willem
2015-05-11 22:01:31 +02:00
Sara Dickinson
79b3412fbf
Add another transport option as proof of concept for STARTTLS.
2015-04-29 19:20:25 +01:00
Willem Toorop
84c5b67ee0
Re-enable printing of json with getdns_query
2015-04-18 09:53:50 +02:00
saradickinson
99aa79b48f
First pass at TLS implementation - needs work!
2015-04-16 18:05:27 +01:00
Willem Toorop
830e0267b3
Fix ASSERT_RC macro with check_getdns
2015-04-03 00:15:32 +02:00
Willem Toorop
c63bbd1399
s/getdns_strerror/getdns_get_errorstr_by_id/g
...
In the unit tests make use of the newly exposed error string getter
2015-04-02 23:08:35 +02:00
Willem Toorop
18381e7753
Get rid of +sit option in getdns_query
2015-04-02 13:59:10 +02:00
Willem Toorop
b5d6180506
enlarge timeouts for hostname_12 unit tests
2015-03-26 13:40:39 -05:00
Willem Toorop
e6462aa0e4
JSON output
2015-03-20 19:55:17 +01:00
Willem Toorop
5dd2236675
getdns_query edns cookies testing
2015-03-09 23:32:21 +01:00
Willem Toorop
13b7133b9d
Fix NOERROR/NODATA test
...
Because hampster.com started to be an e-mailable domain
2015-03-02 11:44:27 +01:00
Willem Toorop
af47cf81a3
Fix reversed IPv6 to domain under our control
2015-02-19 10:31:18 +01:00
Willem Toorop
0a9477d9d7
getdns_query RR type parsing bugfix
...
We need a terminating '\0' as last character always
2015-02-19 00:19:01 +01:00
Willem Toorop
f9a0974e5a
just_address_answers only with getdns_address()
...
We gave it always, but reading the spec it seems it is only required when a
call to getdns_address() or getdns_address_sync() was made.
2015-01-29 12:29:05 +01:00
Willem Toorop
736f5ff157
No executable flags on source files
...
Thanks Paul Wouters
2015-01-20 12:16:49 +01:00
Willem Toorop
6fc63d242b
Link build requirements in tests too
...
Thanks Ondřej Surý
2015-01-20 12:14:23 +01:00
Willem Toorop
90e988c8a3
Make the transport server work on Mac OS-X too!
2015-01-16 15:15:12 +01:00
Willem Toorop
fabf0703a8
Fix unused variable warning
2015-01-14 14:17:08 +01:00
Willem Toorop
a44ad67939
Set options in interactive mode too
2014-11-11 15:20:51 +01:00
Willem Toorop
9356da25ac
Reversed lookups with getdns_query
2014-11-10 16:30:45 +01:00
Willem Toorop
b780db0538
Portability with older systems
...
(tested on SunOS 5.11)
2014-11-07 16:57:24 +01:00
Willem Toorop
335c701ce5
Fix dependencies in Makefiles, get rid of VPATH
...
They couse trouble finding the dependencies in the correct places.
Also, use -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 only when needed
2014-11-07 15:18:32 +01:00
Willem Toorop
30627045ae
Use pkg-config to configure libcheck
...
where available
2014-11-07 09:07:58 +01:00
Willem Toorop
3c9b0c2e30
Don't prefix extension libraries names from /src
2014-11-07 07:26:09 +01:00
Willem Toorop
d7300c17f8
Prevent duplicate symbol _context on Darwin
2014-11-06 21:09:28 +01:00
Willem Toorop
a4bb10396f
Check for libcheck requirements
2014-11-06 20:47:52 +01:00
Willem Toorop
87a8889c7e
Let libtool evaluate symbols in correct order
...
This makes libev work on FreeBSD, so resolves issue #43
2014-11-04 14:56:02 +01:00
Willem Toorop
c7e7c3804a
Merge branch 'master' of github.com:getdnsapi/getdns
2014-10-31 14:20:39 +01:00
Willem Toorop
114e459a43
Make things work on FreeBSD again
2014-10-31 14:17:30 +01:00
Willem Toorop
a0e1311afb
Fix install getdns_query target
2014-10-31 11:28:42 +01:00
Willem Toorop
0bb94ff63c
Install target in src/test for getdns_query
2014-10-30 16:47:11 +01:00
Willem Toorop
2540ef820e
tests_dnssec can also be done with getdns_query
2014-10-28 16:19:49 +01:00
Willem Toorop
a1b06ec0d7
Add my own crude test program
2014-10-28 14:50:20 +01:00
Willem Toorop
18c316e396
Suppress compile warning
2014-10-27 15:15:59 +01:00
saradickinson
339e4f7049
Fixing async test
2014-10-23 08:42:15 +00:00
saradickinson
88bdbdc972
Crude changes to stub test scripts to allow testing of all transport and recusive mode combinations
2014-10-22 17:09:33 +00:00
Willem Toorop
a1be0c985d
Miscelaneous fixes that came out of the unit tests
...
TODO: libuv still has issues. Do we really need a close callback?
2014-10-15 01:13:39 +02:00
saradickinson
d9addba883
Second pass at implementing per query namespaces!
2014-09-25 15:59:05 +00:00
saradickinson
46748c9a0c
Housekeeping of ldns res. Fix transport test.
2014-09-17 18:24:07 +00:00
saradickinson
cbfea31081
Add extra check in test_stub_sync for TCP messages
2014-09-13 17:07:07 +00:00
saradickinson
f89acb6e2d
Setting up nameservers correctly for ldns as stub
2014-09-13 16:19:25 +00:00
John Dickinson
372c980453
Added a check for transport
2014-09-04 14:50:09 +00:00
Willem Toorop
1d10483694
Temporarily disable timeout test 3
...
because of unpredictable results
2014-09-02 22:49:13 +02:00
Willem Toorop
ef3db96555
Merge branch 'master' into v0.1.2
2014-05-26 15:58:40 +02:00
Willem Toorop
45ac1bc7ae
Make libev work on Fedora too
2014-05-26 15:56:30 +02:00
Willem Toorop
d65496f787
Anticipate absense of implicit DSO linking
2014-05-23 13:40:56 +02:00
Willem Toorop
6262e3d8c8
Fix installs and distcleans for blddir != srcdir
2014-05-21 15:42:58 +02:00
Willem Toorop
61e28884b2
Loose non standard unexposed prototypes
...
getdns_list_add_item & getdns_dict_copy
2014-05-21 10:13:02 +02:00
Willem Toorop
448b033df5
Make test program find uninstalled .so
2014-05-20 17:15:54 +02:00
Willem Toorop
57b51a5dcc
prefer includes local to builddir
2014-05-19 15:50:34 +02:00