aboutsummaryrefslogblamecommitdiff
path: root/pem_marshal.go
blob: 14b3bd46ad721cb42b12d0cd0b2c6b0c49719127 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
           













                                                                            
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)
}