aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2018-08-09 23:29:20 +0100
committerNiall Sheridan <nsheridan@gmail.com>2018-08-09 23:43:59 +0100
commit347c11ec42264c579eb3f19494e4f75ab8bb8f0d (patch)
tree0171d2a9bcd67e7b9f6a78bbf6af4627e59f5aa1 /cmd
parent9f8f0194a3c21e640a5b917f86bf204c014d730d (diff)
Remove gRPC
This hasn't been enabled in a while due to gRPC limitations
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cashier/main.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/cmd/cashier/main.go b/cmd/cashier/main.go
index f0ba2f1..7054bef 100644
--- a/cmd/cashier/main.go
+++ b/cmd/cashier/main.go
@@ -13,7 +13,6 @@ import (
"github.com/nsheridan/cashier/client"
"github.com/pkg/browser"
"github.com/spf13/pflag"
- "golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
)
@@ -25,7 +24,6 @@ var (
validity = pflag.Duration("validity", time.Hour*24, "Key lifetime. May be overridden by the CA at signing time")
keytype = pflag.String("key_type", "", "Type of private key to generate - rsa, ecdsa or ed25519. (default \"rsa\")")
publicFilePrefix = pflag.String("key_file_prefix", "", "Prefix for filename for public key and cert (optional, no default)")
- useGRPC = pflag.Bool("use_grpc", false, "Use grpc (experimental)")
)
func main() {
@@ -59,12 +57,7 @@ func main() {
message = scanner.Text()
}
- var cert *ssh.Certificate
- if *useGRPC {
- cert, err = client.RPCSign(pub, token, message, c)
- } else {
- cert, err = client.Sign(pub, token, message, c)
- }
+ cert, err := client.Sign(pub, token, message, c)
if err != nil {
log.Fatalln(err)
}