From 347c11ec42264c579eb3f19494e4f75ab8bb8f0d Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Thu, 9 Aug 2018 23:29:20 +0100 Subject: Remove gRPC This hasn't been enabled in a while due to gRPC limitations --- server/signer/signer.go | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'server/signer') diff --git a/server/signer/signer.go b/server/signer/signer.go index 47ff7c8..8830d50 100644 --- a/server/signer/signer.go +++ b/server/signer/signer.go @@ -10,9 +10,7 @@ import ( "go4.org/wkfs" _ "go4.org/wkfs/gcs" // Register "/gcs/" as a wkfs. - "github.com/golang/protobuf/ptypes" "github.com/nsheridan/cashier/lib" - "github.com/nsheridan/cashier/proto" "github.com/nsheridan/cashier/server/config" "github.com/nsheridan/cashier/server/store" "github.com/stripe/krl" @@ -53,20 +51,6 @@ func (s *KeySigner) setPermissions(cert *ssh.Certificate) { } } -// SignUserKeyFromRPC returns a signed ssh certificate. -func (s *KeySigner) SignUserKeyFromRPC(req *proto.SignRequest, username string) (*ssh.Certificate, error) { - valid, err := ptypes.Timestamp(req.GetValidUntil()) - if err != nil { - return nil, err - } - r := &lib.SignRequest{ - Key: string(req.GetKey()), - ValidUntil: valid, - Message: string(req.GetMessage()), - } - return s.SignUserKey(r, username) -} - // SignUserKey returns a signed ssh certificate. func (s *KeySigner) SignUserKey(req *lib.SignRequest, username string) (*ssh.Certificate, error) { pubkey, _, _, _, err := ssh.ParseAuthorizedKey([]byte(req.Key)) -- cgit v1.2.3