aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crypto.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto.go b/crypto.go
index e275933..30b1346 100644
--- a/crypto.go
+++ b/crypto.go
@@ -50,10 +50,10 @@ func LoadCertFile(fname string) ([]*x509.Certificate, error) {
return nil, err
}
defer fd.Close()
- return LoadCert(fd)
+ return LoadCerts(fd)
}
-func LoadCert(r io.Reader) ([]*x509.Certificate, error) {
+func LoadCerts(r io.Reader) ([]*x509.Certificate, error) {
der, err := ioutil.ReadAll(r)
if err != nil {
return nil, err