diff options
author | Jakob Borg <jakob@nym.se> | 2016-04-20 08:16:42 +0000 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2016-04-20 08:16:42 +0000 |
commit | 4eb23a38b1ceb2c522cb589db2b6e987fd9e915c (patch) | |
tree | 5ca41de2dff36544c80c84f1a863c727bb139975 | |
parent | cb38213444107a912b4258332f30a2bec872aa2a (diff) |
cmd/stvanity: Use Go 1.3 compatible interface
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2998
-rw-r--r-- | cmd/stvanity/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/stvanity/main.go b/cmd/stvanity/main.go index 5cbfa6b494..2454205ded 100644 --- a/cmd/stvanity/main.go +++ b/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) |