Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cviecco committed Oct 26, 2024
1 parent ef1a8f9 commit 2c0a8b7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/keymaster/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,6 @@ func TestMost(t *testing.T) {

}

/*
func goCertToFileString(c ssh.Certificate, username string) (string, error) {
certBytes := c.Marshal()
encoded := base64.StdEncoding.EncodeToString(certBytes)
fileComment := "/tmp/" + username + "-" + c.SignatureKey.Type() + "-cert.pub"
return c.Type() + " " + encoded + " " + fileComment + "\n", nil
}
*/

func TestInsertSSHCertIntoAgentORWriteToFilesystem(t *testing.T) {
//step 1: generate
publicKey, privateKey, err := ed25519.GenerateKey(rand.Reader)
Expand Down Expand Up @@ -285,7 +276,6 @@ func TestInsertSSHCertIntoAgentORWriteToFilesystem(t *testing.T) {
cmd := exec.Command("ssh-add", "-t", "30", privateKeyPath)
err := cmd.Run()
if err != nil {

t.Fatalf("Command finished with error: %v", err)
}
}
Expand Down

0 comments on commit 2c0a8b7

Please sign in to comment.