0
0
pki/pem_marshal.go
Gibheer 53327f7467 add pem support to public key
This adds pem support to public keys which can now be handled the same
way as private keys.
2015-02-17 21:43:21 +01:00

16 lines
291 B
Go

package pki
import (
"io"
)
type (
marshalledPemBlock []byte
)
// This function writes the marshalled pem block to a writer and returns the
// number of written bytes and eventual errors.
func (b marshalledPemBlock) WriteTo(stream io.Writer) (int, error) {
return stream.Write(b)
}