Commit Graph

3022 Commits

Author SHA1 Message Date
Miek Gieben 45e66bfe1d Rename ParseTextSlice to Parse.
Shorter.
2014-09-21 19:09:13 +01:00
Miek Gieben 45f3dc89e4 Rename CopyRdata to just Copy.
Still not sure if this makes things more clear.
2014-09-21 18:30:16 +01:00
Miek Gieben 685f708a9e Rename RdataLen to just Len 2014-09-21 18:21:34 +01:00
Miek Gieben f0e9df42dc fix example 2014-09-21 18:14:34 +01:00
Miek Gieben 3a0c4f2cfa Lowercase error output 2014-09-21 12:10:55 +01:00
Miek Gieben 6d6b8b8599 small update in the README 2014-09-21 09:13:29 +01:00
Miek Gieben 6ee673464d Small doc update 2014-09-21 09:09:50 +01:00
Miek Gieben 9c9f3646ff More naming and some docs 2014-09-21 09:07:26 +01:00
Miek Gieben b90da23741 Fix tests and examples.
Put all examples in the same file and cleanup the tests to use
the new names.
2014-09-21 08:38:17 +01:00
Miek Gieben 11aaecf837 remove private rr tests into example_test.go 2014-09-21 08:32:11 +01:00
Miek Gieben 9c455b0214 PrivateRR: naming naming naming
Try to find better (=more in sync with the rest of the lib) naming. My
guess is that these are better, but YMMV.
2014-09-21 08:28:38 +01:00
Miek Gieben 7e792338bb Move custom* filenames to private to be in sync with the type 2014-09-21 07:56:01 +01:00
Miek Gieben 475e47edf9 Merge pull request #131 from asergeyev/customrr
Added Private RR support
2014-09-21 07:52:50 +01:00
Miek Gieben b80cbbdf6a Merge branch 'master' of github.com:miekg/dns 2014-09-21 07:47:52 +01:00
Miek Gieben e6b3ae712b extra docs 2014-09-21 07:43:46 +01:00
Alex Sergeyev fcf9302ae1 Changed logic to typeswitch and added comments.
And also added my name to contrib list as promised before.
2014-09-20 18:15:42 -04:00
Alex Sergeyev 8aab8c6fb2 Lots of renamed funcs and structures. More readability. 2014-09-20 18:07:36 -04:00
Alex Sergeyev 5b8552609c Added docstrings, tests and example for PrivateRRs.
(renamed CustomRR to PrivateRR)
2014-09-19 17:30:10 -04:00
Alex Sergeyev 7c507e7592 New functionality for adding private RRs to dns lib. 2014-09-19 17:28:53 -04:00
Miek Gieben 89c0167ee0 Merge pull request #130 from asergeyev/master
Added examples for Punycode lib. Makes godoc look pretty.
2014-09-18 16:36:04 +01:00
Alex Sergeyev d353d0190a Added examples for Punycode lib. Makes godoc look pretty. 2014-09-18 10:03:14 -04:00
Miek Gieben 7f7df57ce4 Merge branch 'master' of github.com:miekg/dns 2014-09-18 13:23:47 +01:00
Miek Gieben a8b5ce58e5 Small cleanups 2014-09-18 09:11:16 +00:00
Miek Gieben f94a958587 Merge pull request #129 from asergeyev/master
Code for handling unicode/punycode name conversions v2
2014-09-18 10:08:04 +01:00
Miek Gieben 02dd474056 Dont export typeToRR (old rr_mk) 2014-09-16 07:31:20 +01:00
Miek Gieben 70556daa85 Dont export TypeToParserFunc 2014-09-16 07:20:40 +01:00
Miek Gieben 79861736a2 Factor the switch code in favor of TypeToParserFunc 2014-09-16 07:16:18 +01:00
Miek Gieben 17b0941344 Create and fill TypeToParserFunc 2014-09-16 07:15:34 +01:00
Miek Gieben 7962679920 Identical signature for all setXXX functions 2014-09-16 07:15:25 +01:00
Miek Gieben e42e91096b make all setTYPE parse function return the same values 2014-09-16 07:15:16 +01:00
Miek Gieben bcb640ccaf Make rr_mk public and call it TypeToRR 2014-09-16 07:15:06 +01:00
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