Commit Graph

15 Commits

Author SHA1 Message Date
Miek Gieben a0b011799e documentation 2011-07-23 23:32:42 +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 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
Miek Gieben eaf64a2f4e add comments on the files purpose 2011-07-14 15:54:11 +02:00
Miek Gieben 31c9cf6548 Going to use Ragel (not lex/yacc) 2011-07-13 14:21:26 +02:00