From fd88bca2872e589b451cde3767dbc59d82bd1c83 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Thu, 29 Sep 2016 21:52:25 +0200 Subject: [PATCH] fix result type The returned type must be io.WriterTo to make it fit the Pemmer interface. --- certificate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }