From a39229ebc1cb33a80ad4a4980672fe23d3aee5a4 Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Sat, 12 Mar 2011 19:35:41 -0800 Subject: [PATCH] crypto/tls: fix compile error Fixes #1555. R=rsc, bradfitzgo CC=golang-dev https://golang.org/cl/4284047 --- generate_cert.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generate_cert.go b/generate_cert.go index 3e0c639..ee77f94 100644 --- a/generate_cert.go +++ b/generate_cert.go @@ -25,7 +25,7 @@ func main() { priv, err := rsa.GenerateKey(rand.Reader, 1024) if err != nil { - log.Exitf("failed to generate private key: %s", err) + log.Fatalf("failed to generate private key: %s", err) return } @@ -46,13 +46,13 @@ func main() { derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, &priv.PublicKey, priv) if err != nil { - log.Exitf("Failed to create certificate: %s", err) + log.Fatalf("Failed to create certificate: %s", err) return } certOut, err := os.Open("cert.pem", os.O_WRONLY|os.O_CREAT, 0644) if err != nil { - log.Exitf("failed to open cert.pem for writing: %s", err) + log.Fatalf("failed to open cert.pem for writing: %s", err) return } pem.Encode(certOut, &pem.Block{Type: "CERTIFICATE", Bytes: derBytes})