aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-17 01:17:42 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-17 01:17:42 +0100
commiteda16bf12a72e1426d1f45eb07ce847d4b3e6882 (patch)
tree05e58a9a1e80f33939d52f112d0429e6de235af2 /cmd
parent20f1622cd981833cb9a070c2cbf4cf1e2ee39546 (diff)
Bikeshading
Diffstat (limited to 'cmd')
-rw-r--r--cmd/acmed/config.go2
-rw-r--r--cmd/acmed/main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/acmed/config.go b/cmd/acmed/config.go
index 284ae61..f1529b2 100644
--- a/cmd/acmed/config.go
+++ b/cmd/acmed/config.go
@@ -131,7 +131,7 @@ func LoadConfig(fname string) (*Config, error) {
return c, nil
}
-type Keychain interface {
+type PrivKey interface {
Path() string
Size() int
}
diff --git a/cmd/acmed/main.go b/cmd/acmed/main.go
index 6963238..5b69327 100644
--- a/cmd/acmed/main.go
+++ b/cmd/acmed/main.go
@@ -29,7 +29,7 @@ func newKey(w io.Writer, size int) (*rsa.PrivateKey, error) {
return key, pem.Encode(w, block)
}
-func chkKey(k Keychain) (*rsa.PrivateKey, error) {
+func chkKey(k PrivKey) (*rsa.PrivateKey, error) {
key := k.Path()
flags := os.O_WRONLY | os.O_CREATE | os.O_TRUNC
if _, err := os.Stat(key); os.IsNotExist(err) {