Commit Graph

71 Commits

Author SHA1 Message Date
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 518ab47648 Move the tests into the existing _test.go files. 2014-09-11 20:49:20 +01:00
Filippo Valsorda 72f550b0ec Fix NewPrivateKey ECDSA parsing, and add test 2014-09-10 17:04:39 -07: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 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 53aa7cebbf Add test for SRV signing 2014-02-02 19:25:55 +00:00
Miek Gieben 9c75b3cdc2 Fi the tests too 2014-01-27 14:45:34 +00:00
Miek Gieben 70ee966106 Fix the unknown record sign test
Don't make up new error in msg.Pack when there are perfectly fine
errors to return.
2013-12-06 09:43:26 +00:00
Miek Gieben 6c9cc37ac3 Small tweaks to the pull request from Alex 2013-12-06 07:46:08 +00:00
Miek Gieben 110f6c9ea7 Test for TYPE65534 records, copy now copies slices correctly 2013-12-06 07:37:48 +00:00
Miek Gieben ee8ace0477 Merge branch 'master' of github.com:miekg/dns 2013-09-11 08:22:23 +01:00
Miek Gieben 9c1ee5d5ca Update IsDomainName
This new functions just compiles the domain to wire format, if that
works, the name is deemed OK. It is also much less strict than the
older code. Almost everything is allowed in the name, except two
dots back to back (there is an explicit test for that).
2013-09-10 18:09:22 +00:00
Miek Gieben a5ac1f46ee ...and fix the imports for the test files 2013-09-09 22:20:48 +01:00
Miek Gieben 81d35ce537 Move some functions to the correct file
DNSSEC tests go in dnssec_test.go
2013-09-09 22:19:24 +01:00
Miek Gieben f595bf7a06 Set license on test files 2013-05-12 16:09:52 +02:00
Miek Gieben d53d9eab81 gofmt 2013-05-05 20:30:44 +02:00
Miek Gieben 26994c382b gofmt 2013-01-28 14:34:18 +01:00
Miek Gieben 9977bf87c4 Drop unneeded packages 2012-12-14 12:42:39 +01:00
Miek Gieben 235e892dfc Rename the RR types drop the RR_ prefix
This is also done in the official Go library. It also make the
code shorter.
2012-12-09 19:23:25 +01:00
Miek Gieben dda096049e more tests 2012-04-18 12:13:44 +02:00
Miek Gieben 872dc4fc6b Make the private key reading more natural 2012-04-15 20:55:25 +02:00
Miek Gieben b58c604e17 Add symmetry to the reading of public/private keys
Add a NewPrivateKey that works on strings and calls ReadPrivateKey
that works on io.Readers.
2012-04-15 20:50:53 +02:00
Miek Gieben edf4b3d11b Test signing with ecdsa 2012-04-11 15:13:17 +02:00
Miek Gieben a55014ff8a elliptic curve stuff 2012-04-11 14:32:44 +02:00
Miek Gieben 537b644ed2 Fix the Makefile-less go version of dns 2012-02-05 10:53:15 +01:00
Miek Gieben 09ac6c8dc5 gofmt 2012-01-28 00:35:37 +01:00
Miek Gieben 6e6b67afd5 Fix NSEC(3) with no bitmap 2012-01-23 11:30:26 +01:00
Miek Gieben 74181dee8e More tests 2012-01-22 20:44:52 +01:00
Miek Gieben d78647b17d Typo in test 2012-01-22 19:56:13 +01:00
Miek Gieben 3159bab78c more testing stuff 2012-01-22 19:08:47 +01:00
Miek Gieben 5917838cbb gofmt 2012-01-20 12:24:20 +01:00
Miek Gieben 84700f043f Fix sign test 2012-01-15 20:32:53 +01:00
Miek Gieben 5a7fb7a15f Documentation 2012-01-15 16:09:17 +01:00
Miek Gieben 6e5d3005d6 Fix the test 2012-01-08 15:56:53 +01:00
Miek Gieben e522a6daf7 Make all tests fully qualified 2012-01-08 15:34:42 +01:00
Miek Gieben d1b0ee219f Digest fixes 2011-12-16 15:06:24 +01:00
Miek Gieben 131f6962d1 gofmt 2011-12-09 21:45:57 +01:00
Miek Gieben 406edadf20 Make the tests compile again 2011-09-10 21:22:42 +02:00
Miek Gieben 4671072027 Error handling
Handle semantic errors in the input stream.
Try to use Ragel's error handling when seeing a non-supported
class. This does not work yet.
2011-07-24 17:08:33 +02:00
Miek Gieben da0603089a gofmt -w 2011-07-23 23:43:43 +02:00
Miek Gieben fd0064c805 Parsings works - clean up the tests
RR_DNSKEY has now a
* Read (to read an RR)
* ReadPrivateKey (to read an private key file)

Together you have enough data to sign and verify DNSSEC data.
I'm thinking about a better API, but I think one will emerge
whenever I complete the zone parsin.
2011-07-17 20:51:27 +02:00
Miek Gieben e21ae18160 Fix the tests too. They fail now btw; its on the TODO 2011-07-08 17:30:04 +02:00
Miek Gieben 328931d079 implement (part of) ecdsa256/384 2011-07-08 10:41:07 +02:00
Miek Gieben 8368f4ce60 Actually remove resolver.go 2011-07-04 20:19:44 +02:00
Miek Gieben be6f2365cb Test compile again, but fail 2011-03-23 19:03:37 +01:00