aboutsummaryrefslogtreecommitdiff
path: root/server/signer
diff options
context:
space:
mode:
Diffstat (limited to 'server/signer')
-rw-r--r--server/signer/signer.go16
1 files changed, 0 insertions, 16 deletions
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))