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
Miek Gieben
369d06f1c7
Use line.Readline()
2011-03-23 18:53:16 +01:00
Miek Gieben
3af023bda9
Use bufio.Reader in private key reading
2011-03-23 16:10:15 +01:00
Miek Gieben
98f1f80088
update TODO
2011-03-15 20:52:12 +01:00
Miek Gieben
6a31a5d51c
comment updates
2011-01-27 20:54:30 +01:00
Miek Gieben
d9dfd913a7
documentation updates
2011-01-27 09:29:11 +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
9eea4682fd
Fix documentation
2011-01-17 21:10:48 +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
1f6a221bd8
Private key completely works. Can read BIND9 files
2011-01-17 19:52:28 +01:00
Miek Gieben
ea08cb2d7b
Fix all exponent issues in rsa keys
2011-01-17 18:13:52 +01:00
Miek Gieben
74796c8672
Add SRV and NAPTR record support
2011-01-17 10:30:20 +01:00
Miek Gieben
79f61af370
Fix private Key reading (only for RSA atm)
2011-01-16 19:03:19 +01:00
Miek Gieben
2cfa45408d
trying to set the pubkey from the private key
2011-01-16 18:37:29 +01:00
Miek Gieben
96457a435a
Parsing .private files work - needs some cleaning up
2011-01-16 17:59:04 +01:00
Miek Gieben
317b23ceaf
Parsing private key almost there
2011-01-16 17:43:41 +01:00
Miek Gieben
8ed6c8a8f4
more parsing: from private key file - not finished
2011-01-16 16:22:31 +01:00