Commit Graph

9 Commits

Author SHA1 Message Date
Miek Gieben
da0603089a gofmt -w 2011-07-23 23:43:43 +02:00
Miek Gieben
92291b1575 Documentation and some small tweaks 2011-07-23 08:59:58 +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
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
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