Commit Graph

77 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 81941d4422 Update all copyright notices 2013-05-12 16:15:52 +02:00
Miek Gieben d53d9eab81 gofmt 2013-05-05 20:30:44 +02:00
Miek Gieben 2e02b42558 Fix documentation too 2012-12-09 20:20:16 +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 2a3b818b95 Use much more descriptive names for the maps
Alg_str -> AlgorithmToString
 Rr_str  -> TypeToString

And for the reverse maps also.
2012-12-02 09:29:54 +01:00
Miek Gieben 3611c4d458 fmt 2012-05-05 17:37:48 +02:00
Miek Gieben 70fac2eec3 add the nsec3 alias too 2012-04-19 14:39:50 +02:00
Miek Gieben 01258c0d97 Finish DSA support -- completely untested 2012-04-18 12:48:54 +02:00
Miek Gieben ab46f380bc String pres. for DSA private key files 2012-04-17 12:56:34 +02:00
Miek Gieben 7c9a376659 More DSA stuff: generation/signing/verifying 2012-04-17 11:58:06 +02:00
Miek Gieben 35bfb48fac fix the mnemonic for ecdsa* 2012-04-11 14:37:51 +02:00
Miek Gieben f346ff0a77 Add priv. key support for ecdsa 2012-04-06 19:27:11 +02:00
Miek Gieben da230e4ff5 small updates 2012-03-18 22:47:06 +01:00
Miek Gieben dc16392734 Newly allocated names 2012-03-02 15:28:22 +01:00
Miek Gieben 509912d4c4 Fixes for weekly.2012-01-20 2012-01-20 12:24:05 +01:00
Miek Gieben 5a7fb7a15f Documentation 2012-01-15 16:09:17 +01:00
Miek Gieben d53102fc7b Make alg_str public: Alg_str 2012-01-12 13:01:43 +01:00
Miek Gieben 512d1dae46 Fix the reading of private key files 2011-12-16 17:32:15 +01:00
Miek Gieben ef7b6f525f gofmt 2011-12-16 14:48:30 +01:00
Miek Gieben 081166db5e Fix the tests (Again) + NewRR(str)
Parse tests start to get working again
NewRR reads a string and is the easiest way to get an RR
in your code.
2011-12-15 17:37:07 +01:00
Miek Gieben 32a879d970 New parsing works, but a lot of stuff needs to be fixed:
* Parsing the different records
* Parsing private key files (trivial, but needs to be done)
2011-12-14 11:30:29 +01:00
Miek Gieben 131f6962d1 gofmt 2011-12-09 21:45:57 +01:00
Miek Gieben 96cbd9420c add privatedns/oid 2011-12-09 16:00:41 +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 e8b68c8621 documentation 2011-09-08 19:35:02 +02:00
Miek Gieben 31b2aec24e Parse differently
Returned each parsed RR on a channel and let the caller decide what
to do with it.

Ragel is still broken, so this is non tested code.
2011-09-02 13:44:35 +02:00
Miek Gieben 68d2f49caa another nil test 2011-08-08 10:30:28 +02:00
Miek Gieben 91fdd69c80 no panic in the lib 2011-08-08 10:29:30 +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 a1a0034733 More Go like
Make a Parser type and define methods on that.
* Zone()    parse and return entire zone
* RR()      parse and return 1 RR
* PrivateKey parse a private key file
2011-07-22 23:51:30 +02:00
Miek Gieben 2a8d7f9694 Make the API more Go like 2011-07-22 23:28:04 +02:00
Miek Gieben ab6e700ce1 comments 2011-07-22 19:35:11 +02:00
Miek Gieben 7c716e66c0 Parsing zone files - does not work (yet) 2011-07-18 20:47:03 +02:00
Miek Gieben 0742f1e75f parsing tweaks 2011-07-18 18:53:33 +02:00
Miek Gieben 91b41d02bb SetString for DNSKEY and RRSIG 2011-07-18 15:49:20 +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 8c595abe56 More parsing stuff 2011-07-17 15:47:03 +02:00
Miek Gieben b2c50a39f6 parse private key files
Reading a key should go as this:
k := new(key)
k.ReadPublic(File)
k.ReadPrivate(File)

For RSA enough public material is stored in the priv. key that we do it
in one swoop. This should really be two steps.
2011-07-17 12:03:04 +02:00
Miek Gieben 3f9b67632a RSA priv key reading works again 2011-07-08 18:21:29 +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 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
Miek Gieben 6f0f2cc4fd Fix the removal of encoding/line 2011-07-04 19:54:56 +02:00
Elazar 904e322dfd Ran gofix, and manually bring code up to latest go release.
1) Ran gofix on all files.
2) Added "tcp" and "udp" to Resolve* functions in server.go
3) Generated primes to the primes array and not to two predefined
   struct members (P and Q), since now rsa support multi-factor primes.
2011-06-02 13:31:12 +03:00
Miek Gieben 8aa88a0bd3 normalize errors 2011-03-25 11:19:35 +01:00
Miek Gieben d8d4d000bc Fix test and robustness 2011-03-24 09:02:19 +01:00