Miek Gieben
0aa3021a83
Remove all copyright notices
...
Use the central COPYRIGHT file.
2014-09-11 20:57:37 +01:00
Miek Gieben
cf89d7a324
Remove Copyrights from there
2014-09-11 20:53:14 +01:00
Miek Gieben
24296ac36e
Remove the GOST scan code.
...
The code was commented out and was a copy of code with a bug in it.
Basically it is safer to delete this, than to let it in.
2014-09-11 20:51:52 +01:00
Miek Gieben
518ab47648
Move the tests into the existing _test.go files.
2014-09-11 20:49:20 +01:00
Miek Gieben
7c8f83b848
Merge pull request #125 from FiloSottile/ecdsa_fix
...
Fix NewPrivateKey ECDSA parsing, and add test
2014-09-11 20:45:01 +01:00
Miek Gieben
b6da65c4b0
typo in the docs
2014-09-11 08:49:16 +01:00
Filippo Valsorda
72f550b0ec
Fix NewPrivateKey ECDSA parsing, and add test
2014-09-10 17:04:39 -07:00
Miek Gieben
5cdb7e11a3
Merge branch 'master' of github.com:miekg/dns
2014-09-09 07:53:52 +01:00
Miek Gieben
ad58c7b338
Disabled two failing ECDSA tests
2014-09-09 07:53:09 +01:00
Miek Gieben
6ecd49ff89
Fix ECDSA algorithms
...
Current code was completely wrong, so validation of ECDSA didn't work.
The new tests now works, the old one now doesn't
2014-09-09 07:51:15 +01:00
Miek Gieben
643720d10d
Fix ECDSA algorithms
...
Current code was completely wrong, so validation of ECDSA didn't work.
The new tests now works, the old one now doesn't
2014-09-09 07:45:47 +01:00
Miek Gieben
41a8a22440
Merge pull request #123 from cpatulea/master
...
Update documentation references for EDNS0 and EDNS0_SUBNET.
2014-09-08 08:23:48 +01:00
Catalin Patulea
009c72175f
Update documentation references for EDNS0 and EDNS0_SUBNET.
...
Only EDNS0 is defined in RFC 6891 and EDNS0_SUBNET is actually just a draft.
2014-09-05 23:56:41 -04:00
Miek Gieben
818abf8202
Lowercase the Test to test
2014-09-05 08:47:23 +01:00
Miek Gieben
4b1fbc358e
Cleanup the test a bit
2014-09-05 08:44:31 +01:00
Miek Gieben
919e4f9daf
Add extra (failing) sign/verify test
2014-09-05 08:27:22 +01:00
Miek Gieben
608a5e2c5e
Merge pull request #122 from FiloSottile/patch-1
...
Correct the DNSKEY flag values
2014-09-04 23:37:14 +01:00
Filippo Valsorda
3a7db158f5
Correct the DNSKEY flag values
...
See https://www.iana.org/assignments/dnskey-flags/dnskey-flags.xhtml
Elsewhere in the code 256 (1 << 8) is used numerically for ZONE, so nothing breaks for now.
2014-09-04 15:31:23 -07:00
Miek Gieben
fbc3e49b78
Some documentation updates
2014-09-02 10:31:15 +00:00
Miek Gieben
b2755a0543
Some docs moved to RFC status
2014-08-30 15:46:37 +00:00
Miek Gieben
bf3728f44f
Add line to the readme
2014-08-30 15:42:51 +00:00
Miek Gieben
18c150f21a
zoneMatch is not used
2014-08-30 15:09:01 +01:00
Miek Gieben
85189d35e4
Add Exchange in the test.
...
Increases test coverage.
2014-08-30 15:06:20 +01:00
Miek Gieben
10dc4b971d
Merge pull request #117 from asergeyev/defaultmux
...
Addressed #115 (default mux should be cleaned after tests)
2014-08-30 14:49:07 +01:00
Alex Sergeyev
3489112d72
Addressed #115 (default mux should be cleaned after tests)
2014-08-30 09:45:30 -04:00
Miek Gieben
1fde15f6f3
Merge pull request #116 from asergeyev/master
...
Removed Goshed from Run???TestServer.
2014-08-30 14:42:49 +01:00
Alex Sergeyev
de77e9d14d
Removed Goshed from RunXXXTestServer and...
...
only used it for shutdown tests where it makes sense.
2014-08-30 09:35:54 -04:00
Miek Gieben
ebc5489482
Fix datarace in Start/Shutdown
...
Add mutex and guard a 'started' boolean as well as the stopUDP
and tcpTCP channels so that 'go test -race' does not trigger.
Closes #111 , closes #114
2014-08-30 10:34:44 +01:00
Miek Gieben
06fc321c2c
fmt
2014-08-30 08:45:10 +01:00
Miek Gieben
5fd5c6d9eb
And actually fix the parsing
2014-08-30 08:44:16 +01:00
Miek Gieben
cbb9881e96
Parse dynamic update RR in presentation format
...
Don't panic when encountering dynamic update RRs in zonefiles.
There are some other failure cases when parsing, those will be
fixed in subsequent commits.
Closes #110
2014-08-30 07:34:05 +01:00
Miek Gieben
a2ad8f8ac5
Merge pull request #113 from asergeyev/master
...
No timeouts in tests
2014-08-30 07:19:21 +01:00
Alex Sergeyev
fce659ba46
Restored code when shutdown needs an exchange...
...
Clients sents NULL-packet to server which helps to avoid
timeout. Timeout is still possible to encounter.
Shutdown will likely report error for those cases.
2014-08-29 14:27:53 -04:00
Alex Sergeyev
c618657d9b
Dealt with race condition detector warnings:
...
* stopped obvious race condition with replacing handler in
ServingLargeResponses test
* lowered probability of other race conditions with test code
while test server is yet activating
* fixed errmessage in Shutdown
2014-08-29 14:10:05 -04:00
Alex Sergeyev
ef07b9a69a
Following up in introducing getReadTimeout()
2014-08-29 12:26:23 -04:00
Alex Sergeyev
f735bb9dcb
Changed how shutdown works...
...
Now stopXXX event will stop any reading on currently open
socket and terminate reading loop. No special client/server
message is required anymore.
2014-08-29 12:24:11 -04:00
Alex Sergeyev
e7a401841e
Fixed client tests and removed TODO about timeouts
2014-08-29 08:59:19 -04:00
Alex Sergeyev
87f8764f43
Added a comment about shutdown tests
2014-08-29 08:37:32 -04:00
Alex Sergeyev
32d6e5396e
Continued removing Sleeping tests:
...
* incorporated @miekg suggestions on switch vs if
* for now moved reaction to stopXXX channel messages until
after the packet is responded to avoid client timeout in
Shutdown (causing 2 sec. hanged thread)
Still not great how the abort logic is implemented....
2014-08-29 08:31:27 -04:00
Miek Gieben
f6c7c65fc4
Merge branch 'master' of github.com:miekg/dns
2014-08-29 09:42:53 +00:00
Miek Gieben
cfa561ed85
Add TestDynamicUpdateParsing test
2014-08-29 09:42:43 +00:00
Alex Sergeyev
4b21f37064
Proposed way of creating no-timeout tests and...
...
... fix for Server.Shutdown() function.
2014-08-28 23:11:49 -04:00
Miek Gieben
28dc2fa7be
Merge pull request #109 from asergeyev/master
...
Some tokens only worked in upper case, fixing that.
2014-08-28 18:46:37 +01:00
Alex Sergeyev
05bec3968a
Addressed cases when tokenUpper makes sense to be used.
2014-08-28 13:34:00 -04:00
Alex Sergeyev
1959cc8421
Added tests to support mixed case Type and Class
2014-08-28 13:05:05 -04:00
Alex Sergeyev
9c4dca35d5
Removed unnecessary toUpper.
2014-08-28 12:59:54 -04:00
Alex Sergeyev
84d9ad0a39
Fixed typo in "tokens"
2014-08-28 12:59:54 -04:00
Alex Sergeyev
476d122030
Changed test for lowercase tokens; improved code:
...
* for cases if $ORIGIN or $TTL are used in mixed case
* changed test name too
2014-08-28 12:59:54 -04:00
Alex Sergeyev
d1ea8497ad
Added couple failure tests for lowercase class/type
2014-08-28 12:59:54 -04:00
Alex Sergeyev
66342f4ea2
Added test to verify RRSIG type covered in mixed case.
2014-08-28 12:59:54 -04:00