From dfc9472452d5c1562b024832e4d397fc0f2048a2 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Wed, 24 Dec 2014 11:49:30 +0100 Subject: remove old code from comments --- main.go | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/main.go b/main.go index d0fdef6..b028881 100644 --- a/main.go +++ b/main.go @@ -8,9 +8,6 @@ import ( "io/ioutil" "os" "path/filepath" -// "code.google.com/p/go.crypto/ssh/terminal" -// "math/big" -// "time" ) const ( @@ -119,26 +116,3 @@ func crash_with_help(code int, message string) { print_modules() os.Exit(code) } - -// fmt.Println("Lets create a cert!") -// template := &x509.Certificate{ -// SerialNumber: big.NewInt(1), -// Subject: pkix.Name{ -// Organization: []string{"Acme Co"}, -// }, -// NotBefore: time.Now(), -// NotAfter: time.Now().Add(365 * 24 * time.Hour), -// KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature, -// ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, -// BasicConstraintsValid: true, -// } -// priv, err := ecdsa.GenerateKey(elliptic.P521(), rand.Reader) -// fmt.Println(priv.PublicKey, err) -// raw_string, err := x509.CreateCertificate(rand.Reader, template, template, &priv.PublicKey, priv) -// cert, err := x509.ParseCertificate(raw_string) -// fmt.Println(cert, err) -// -// // read a password or so -// password, err := terminal.ReadPassword(0) -// fmt.Println(string(password), err) -//} -- cgit v1.2.3-70-g09d2