Commit Graph

113 Commits

Author SHA1 Message Date
Miek Gieben 99ea36cd42 Check the protocol value of the key 2012-02-16 23:34:09 +01:00
Miek Gieben 2cb265697e Documentation
Need to think about the non-existing root-label and the label
functions.
2012-02-12 11:34:28 +01:00
Peter van Dijk 448596bccb fix typo 2012-02-10 09:19:23 +01:00
Peter van Dijk c05615b783 fix RRSIG wildcard checking 2012-02-10 09:19:00 +01:00
Miek Gieben ed61734c89 Optimize the RR reading further
remove len(strings) from the code. 16% increase
in speed. Getting about 35K RR/s
2012-01-30 21:26:29 +01:00
Miek Gieben bfc928973f Remove/fix some todo 2012-01-29 00:34:59 +01:00
Miek Gieben 19f8d266b5 Remove the RRset type - only add obvious stuff 2012-01-28 01:14:07 +01:00
Miek Gieben 6d5fd7f975 Some more tweaks into verifying nsec3 messages 2012-01-22 16:12:10 +01:00
Miek Gieben c051e5eec5 Small tweaks 2012-01-22 12:24:31 +01:00
Miek Gieben f25584e94e Overflow fixes 2012-01-21 12:35:19 +01:00
Miek Gieben c9fc2ea493 Enable signature checking in messages 2012-01-21 11:58:26 +01:00
Miek Gieben 5917838cbb gofmt 2012-01-20 12:24:20 +01:00
Miek Gieben 509912d4c4 Fixes for weekly.2012-01-20 2012-01-20 12:24:05 +01:00
Miek Gieben 9f3a1c1f13 Documentation and make ParseKey private (parseKey) 2012-01-16 21:44:49 +01:00
Miek Gieben 50a62b9c68 Dont downcase 2012-01-16 10:50:35 +01:00
Miek Gieben 4bd5d7f3f2 Lowercase rdata of rr to be signed/verified 2012-01-16 09:54:05 +01:00
Miek Gieben 8608def558 Documentation 2012-01-15 16:14:22 +01:00
Miek Gieben 5c74f7285f Save some bytes in the dnssec signature validation 2012-01-15 16:00:40 +01:00
Miek Gieben 0509df509e gofmt 2012-01-12 23:17:34 +01:00
Miek Gieben d53102fc7b Make alg_str public: Alg_str 2012-01-12 13:01:43 +01:00
Miek Gieben f1a3b31384 Make a packStructCompress() to leave packStruct() simpler 2012-01-11 20:33:38 +01:00
Miek Gieben eafe995a56 Add a compression flag to msg struct 2012-01-11 20:26:39 +01:00
Miek Gieben 6d95911558 Dont allow the question section to be compressed 2012-01-11 16:16:09 +01:00
Miek Gieben 974c28d1b1 More fixes for compression 2012-01-11 11:13:17 +01:00
Miek Gieben 7f77e5e6b4 Fix key2ds 2012-01-08 16:49:54 +01:00
Miek Gieben cd266d5f0f Its a uint8 2012-01-08 15:56:19 +01:00
Miek Gieben ecfd5451a9 Remove the Labels() function.
This is now handled inside IsDomainName, which really parses
the name and then (also) returns the number of labels found.
2012-01-08 15:54:33 +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 17d3f12d31 Fix NSEC presentation 2011-12-09 16:11:37 +01:00
Miek Gieben 96cbd9420c add privatedns/oid 2011-12-09 16:00:41 +01:00
Miek Gieben ad11f2425e export Unpack/PackDomainName 2011-12-09 15:58:36 +01:00
Miek Gieben e115e5da6e Update to the latest weekly: weekly/weekly.2011-12-06
The new time API must still be used. But for now it compiles.
All DNSSEC/TSIG timing is probably broken
2011-12-09 11:16:49 +01:00
Miek Gieben 22a467e718 Fixes the latest weekly 2011-11-02 23:06:54 +01:00
Miek Gieben b7ca96e7d4 Normalize errors
Use the errors as defined in msg.go and a few.
2011-09-09 10:21:04 +02:00
Taral 24a912919f Change Sign() and Verify() to return more useful os.Error 2011-09-08 12:14:41 -07:00
Taral 220ad18ded Remove redundant sorting and fix small error 2011-09-08 12:14:06 -07:00
Taral ca33c9ad0e Add sorting to DNSSEC signature verify 2011-09-08 12:14:06 -07:00
Miek Gieben c104ee05b8 documentation updates 2011-09-08 19:25:45 +02:00
Miek Gieben 6034016b29 tweak the documentation a bit 2011-09-08 08:30:17 +02:00
Miek Gieben 7897c8f088 Add RSASHA1NSEC3SHA1 alg
From Taral <taralx@gmail.com>
2011-09-08 08:26:40 +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 9b1e7b4b3d documentation
make Str_rr and Str_class private, prolly only needed
for parsing
2011-07-23 23:15:40 +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 4c26df63ba Drop the Alg and Hash prefixes 2011-07-08 17:27:44 +02:00
Miek Gieben b84e27535c More ECC updates - we should be able to sign 2011-07-08 14:51:40 +02:00
Miek Gieben ad5b59c09d Prepare ecdsa signing/verification 2011-07-08 11:40:32 +02:00
Miek Gieben e73c759491 More curve updates 2011-07-08 11:08:31 +02:00
Miek Gieben 328931d079 implement (part of) ecdsa256/384 2011-07-08 10:41:07 +02:00