aboutsummaryrefslogtreecommitdiff
path: root/client/keys.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/keys.go')
-rw-r--r--client/keys.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/keys.go b/client/keys.go
index b488ea2..f573136 100644
--- a/client/keys.go
+++ b/client/keys.go
@@ -59,7 +59,9 @@ func pemBlockForKey(priv interface{}) (*pem.Block, error) {
// Default is "rsa"
func KeyType(keyType string) KeyOption {
return func(o *options) {
- o.keytype = keyType
+ if keyType != "" {
+ o.keytype = keyType
+ }
}
}