diff options
author | Gibheer <gibheer+git@zero-knowledge.org> | 2016-09-29 21:52:25 +0200 |
---|---|---|
committer | Gibheer <gibheer+git@zero-knowledge.org> | 2016-09-29 21:52:25 +0200 |
commit | fd88bca2872e589b451cde3767dbc59d82bd1c83 (patch) | |
tree | 1d60a2203fbe20e0b13a806aa90cb0bac9f93d80 | |
parent | 2ad03c8f80e048138581229bab76c481292847b4 (diff) |
fix result type
The returned type must be io.WriterTo to make it fit the Pemmer
interface.
-rw-r--r-- | certificate.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/certificate.go b/certificate.go index b8849d2..3adb530 100644 --- a/certificate.go +++ b/certificate.go @@ -151,7 +151,7 @@ func LoadCertificate(raw []byte) (*Certificate, error) { } // marshal the certificate to a pem block -func (c *Certificate) MarshalPem() (marshalledPemBlock, error) { +func (c *Certificate) MarshalPem() (io.WriterTo, error) { block := &pem.Block{Type: PemLabelCertificate, Bytes: c.Raw} return marshalledPemBlock(pem.EncodeToMemory(block)), nil } |