Explorar o código

cmd/stvanity: Use Go 1.3 compatible interface

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2998
Jakob Borg %!s(int64=9) %!d(string=hai) anos
pai
achega
4eb23a38b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmd/stvanity/main.go

+ 1 - 1
cmd/stvanity/main.go

@@ -101,7 +101,7 @@ func generatePrefixed(prefix string, count *int64, found chan<- result, stop <-c
 		default:
 		}
 
-		derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, priv.Public(), priv)
+		derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, priv.PublicKey, priv)
 		if err != nil {
 			fmt.Println(err)
 			os.Exit(1)