Alex Sergeyev
c37add8d9e
Prevented crash on empty string to our funcs +...
...
* changed encodeBytes to encode and decodeBytes to decode
* fixed few comments
2014-09-15 09:02:51 -04:00
Alex Sergeyev
c38aeeb355
Declared variables prior to entering main conversion loops
2014-09-15 08:43:08 -04:00
Alex Sergeyev
d42c1e2bbc
Replaced rune(0) to new const
2014-09-15 08:38:01 -04:00
Alex Sergeyev
950dac05e5
Changed label splitting and fixed behavior for final period in names.
2014-09-15 08:23:08 -04:00
Alex Sergeyev
c383d91f69
Added package header.
2014-09-15 07:52:58 -04:00
Alex Sergeyev
61db5487dd
Updated Punycode funcs
...
* docstrings
* changes to handling invalid punycode names
* updated tests
2014-09-13 22:11:53 -04:00
Alex Sergeyev
e59305ec87
Fixed panic calls to be similar to others in library
2014-09-12 07:52:33 -04:00
Alex Sergeyev
a906600891
Moved things to subdir and adding functions to convert strings.
2014-09-12 07:52:33 -04:00
Alex Sergeyev
e3c2c0734f
Added punycode conversion placeholders and...
...
internal functions that provide conversion and tests for those
per #120 .
2014-09-12 07:52:32 -04:00
Miek Gieben
3d8aa78c0a
Merge pull request #127 from asergeyev/txtescapezscan
...
Fixed TXT parsing with escaped chars
2014-09-12 07:18:46 +01:00
Alex Sergeyev
ae7d973e40
Updated code to handle escapes in TXT RDATA
...
Added test demonstrating error in TXT parsing.
Fixed lexing process and slightly updated conversion
back to strings.
See #126 for details.
2014-09-11 21:23:38 -04:00
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