]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: build the builtin root certs also for darwin/arm64
authorShenghou Ma <minux@golang.org>
Sat, 11 Apr 2015 09:09:12 +0000 (05:09 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Thu, 16 Apr 2015 16:50:30 +0000 (16:50 +0000)
Change-Id: I3b3f80791a1db4c2b7318f81a115972cd2237f06
Signed-off-by: Shenghou Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/8785
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/root_cgo_darwin.go
src/crypto/x509/root_darwin.go
src/crypto/x509/root_darwin_arm_gen.go
src/crypto/x509/root_darwin_armx.go [moved from src/crypto/x509/root_darwin_arm.go with 99% similarity]

index 39a5781a8e5b00660c077ec0f2fc65d5501f6663..9fb08ddf0bd04a0cdbf6b391fe122488be691ca9 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build cgo,!arm
+// +build cgo,!arm,!arm64
 
 package x509
 
index 96b6599dac4f2d35818f91f7d6a143ae648fe683..78de56c221531491f117f034757809df70af23b5 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:generate go run root_darwin_arm_gen.go -output root_darwin_arm.go
+//go:generate go run root_darwin_arm_gen.go -output root_darwin_armx.go
 
 package x509
 
index 194e016045742b7543e670707d9c6dc57cd793ff..40e85b752e271812269dd655f4cff060673233fa 100644 (file)
@@ -4,7 +4,7 @@
 
 // +build ignore
 
-// Generates root_darwin_arm.go.
+// Generates root_darwin_armx.go.
 //
 // As of iOS 8, there is no API for querying the system trusted X.509 root
 // certificates. We could use SecTrustEvaluate to verify that a trust chain
@@ -31,7 +31,7 @@ import (
        "strings"
 )
 
-var output = flag.String("output", "root_darwin_arm.go", "file name to write")
+var output = flag.String("output", "root_darwin_armx.go", "file name to write")
 
 func main() {
        certs, err := selectCerts()
@@ -178,6 +178,9 @@ const header = `
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build darwin
+// +build arm arm64
+
 package x509
 
 func initSystemRoots() {
similarity index 99%
rename from src/crypto/x509/root_darwin_arm.go
rename to src/crypto/x509/root_darwin_armx.go
index 43cd9ec2bdff6bfbf7df1cfebde5bb7763ba6061..62b7d24c9110006afd4b744131447411abba4654 100644 (file)
@@ -1,9 +1,12 @@
-// Created by root_darwin_arm_gen --output root_darwin_arm.go; DO NOT EDIT
+// Created by root_darwin_arm_gen --output root_darwin_armx.go; DO NOT EDIT
 
 // Copyright 2015 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build darwin
+// +build arm arm64
+
 package x509
 
 func initSystemRoots() {