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
db5b40c000
Reset _IOBUF
2011-07-22 22:16:56 +02:00
Miek Gieben
4f6b1f7ee2
Correct the count
2011-07-22 22:07:45 +02:00
Miek Gieben
c2a89d3184
Tweaks for parsing
2011-07-22 22:06:07 +02:00
Miek Gieben
b03994e257
NSEC and NSEC3 parsing support
...
Needs some work, but it is working
2011-07-22 20:23:36 +02:00
Miek Gieben
412a3a3f3e
update readme
2011-07-22 19:39:36 +02:00
Miek Gieben
ab6e700ce1
comments
2011-07-22 19:35:11 +02:00
Miek Gieben
d574e43c00
Do more setstring work
2011-07-22 19:23:06 +02:00
Miek Gieben
cfba61fdf9
Move around some debugging code
2011-07-22 18:50:47 +02:00
Miek Gieben
fa6e603134
add ds/dnskey/rrsig and fix 1-line comments
2011-07-22 17:29:56 +02:00
Miek Gieben
725fb45591
Parse the test zone from Jan Mercl
2011-07-22 12:49:03 +02:00
Miek Gieben
6b53a030c2
Some tweaks and a clear view on the todo
2011-07-22 12:31:39 +02:00
Miek Gieben
e87fb8209f
FINALLY looks like something thats is fast and simple
2011-07-22 12:26:31 +02:00
Miek Gieben
108e795378
Some tweaks; not sure if this is the way forward
2011-07-21 16:43:18 +02:00
Miek Gieben
dcbd332a69
Put back in support for DNSSEC records
2011-07-21 14:50:47 +02:00
Miek Gieben
021d0e8842
smaller stuff
2011-07-21 14:35:20 +02:00
Miek Gieben
e0cc303084
ITS WORKING!!!11!!
...
Parsing looks to be working with using Ragal as a lexer.
Comments aren't handled, everything should be on 1 line...
But.. we have a nice start here IMO.
2011-07-21 14:33:17 +02:00
Miek Gieben
20c3d2cdc6
this one can go
2011-07-21 14:32:13 +02:00
Miek Gieben
c5e26c4313
dont delete it
2011-07-21 14:32:02 +02:00
Miek Gieben
5fe15bc754
gone
2011-07-21 14:31:48 +02:00
Miek Gieben
e863e86e65
This works, but is too slow
2011-07-21 12:31:47 +02:00
Miek Gieben
802b8cd9c9
This parses - now make it quick
2011-07-20 21:19:40 +02:00
Miek Gieben
367dfb8eb8
deze erbij
2011-07-20 21:18:06 +02:00
Miek Gieben
125cc44dca
add generated code too
2011-07-19 18:40:27 +02:00
Miek Gieben
0b8c7e2314
cleanups
2011-07-19 18:35:08 +02:00
Miek Gieben
c8975950bd
Peeked some parser stuff from gdnsd
2011-07-19 17:49:51 +02:00
Miek Gieben
b13a2d6ad9
less type assertions
...
From cznic:
Let me suggest something like:
x := rr.(*RR_SOA)
x.Hdr = *hdr
x.Ns = tok.T[0]
...
to avoid repeated type assertion - unnecessary for the still same 'rr'.
2011-07-19 13:48:32 +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
e50100848c
Fix parsing of AAAA records
2011-07-18 17:40:55 +02:00
Miek Gieben
e1bd7db73b
More parsing tweaks
2011-07-18 16:06:06 +02:00
Miek Gieben
91b41d02bb
SetString for DNSKEY and RRSIG
2011-07-18 15:49:20 +02:00
Miek Gieben
2eecc66477
SetString() for a bunch of RR - to be extended
2011-07-18 15:19:47 +02:00
Miek Gieben
2e4f0cc015
goto restrictions
2011-07-18 13:26:57 +02:00
Miek Gieben
f1cbdbd9d4
New goto rules
2011-07-18 13:12:22 +02:00
Miek Gieben
fa7a05a059
cleanups
2011-07-17 22:00:48 +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
43d51f7382
private key parsing works on files/io.Reader
2011-07-17 11:35:58 +02:00
Miek Gieben
4147993a6f
Reflect current code in the readme
2011-07-15 18:14:14 +02:00
Miek Gieben
fc96e3bfc5
Some tweaks. Next up: io.Reader to string for parsing
2011-07-15 18:09:41 +02:00
Miek Gieben
8f1992e0bc
Enable parsing of gost and ecdsa
2011-07-15 17:55:25 +02:00
Miek Gieben
3cb1fd98ed
Add generated content
2011-07-15 17:41:43 +02:00
Miek Gieben
77df52c2f2
priv key parsing works also
2011-07-15 17:41:26 +02:00
Miek Gieben
385899c246
Now it even compiles
2011-07-15 13:42:22 +02:00
Miek Gieben
981f1853bc
First stab at parsing .priv key files with Ragel
2011-07-15 13:40:58 +02:00
Miek Gieben
92518b1c6a
begin this file too
2011-07-14 23:59:12 +02:00
Miek Gieben
8633070b63
nothing
2011-07-14 23:56:49 +02:00