Commit Graph

61 Commits

Author SHA1 Message Date
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
Miek Gieben
98e4b33cb5 formatting and documentation 2011-02-24 16:22:14 +01:00
Miek Gieben
7e1f9490f2 Cert RR added
PubKey is named PublicKey in the RR_DNSKEY
2011-01-25 13:57:54 +01:00
Miek Gieben
96a55dee9b Less verbose tests 2011-01-17 20:29:40 +01:00
Miek Gieben
48cbf55a23 completely fix private key reading 2011-01-17 20:18:51 +01:00
Miek Gieben
8ed6c8a8f4 more parsing: from private key file - not finished 2011-01-16 16:22:31 +01:00
Miek Gieben
582c89299b Only 3 testfiles left 2011-01-15 22:57:17 +01:00
Miek Gieben
3856fa250f remove this test too 2011-01-15 22:53:45 +01:00
Miek Gieben
a1e2d21553 Fold more tests into 1 file 2011-01-15 22:53:04 +01:00
Miek Gieben
f1e3496e8d Fold some tests back together 2011-01-15 22:48:39 +01:00
Miek Gieben
15bf984f3f LabelCount() made public and various other tweaks 2011-01-14 18:55:18 +01:00