aboutsummaryrefslogtreecommitdiff
path: root/crypto.go
diff options
context:
space:
mode:
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 c8fc656..21e2bb3 100644
--- a/crypto.go
+++ b/crypto.go
@@ -94,11 +94,11 @@ func LoadCert(r io.Reader) ([]*x509.Certificate, error) {
return x509.ParseCertificates(block.Bytes)
}
-func CreateKeyFile(fname string) (io.WriteCloser, error) {
+func CreatePrivFile(fname string) (io.WriteCloser, error) {
return createFile(fname, 0700)
}
-func CreateCertFile(fname string) (io.WriteCloser, error) {
+func CreatePubFile(fname string) (io.WriteCloser, error) {
return createFile(fname, 0755)
}