aboutsummaryrefslogtreecommitdiff
path: root/crypto.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-01-13 15:42:07 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-01-13 15:42:07 +0100
commitbdb180161acf68893c8381ce9e652d1ba7bca8ee (patch)
tree1fb69c859fce66f8bd123d96964492d9f7ef80ef /crypto.go
parentb58e13a34baf7e8f83033e43c57566524771f5dc (diff)
Naming
Diffstat (limited to 'crypto.go')
-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