})
}
+ // Test the ios build tag on darwin/amd64 for the iOS simulator.
+ if goos == "darwin" && !t.iOS() {
+ t.tests = append(t.tests, distTest{
+ name: "amd64ios",
+ heading: "ios tag on darwin/amd64",
+ fn: func(dt *distTest) error {
+ t.addCmd(dt, "src", t.goTest(), t.timeout(300), "-tags=ios", "-run=SystemRoots", "crypto/x509")
+ return nil
+ },
+ })
+ }
+
if t.race {
return
}
package x509
-//go:generate go run root_darwin_arm64_gen.go -version 55161.80.1
+//go:generate go run root_darwin_ios_gen.go -version 55161.80.1
import "sync"
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !ios
+
package x509
// This cgo implementation exists only to support side-by-side testing by
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build !ios
+
package x509
import (
-// Code generated by root_darwin_arm64_gen.go -version 55161.80.1; DO NOT EDIT.
+// Code generated by root_darwin_ios_gen.go -version 55161.80.1; DO NOT EDIT.
// Update the version in root.go and regenerate with "go generate".
+// +build darwin,arm64 darwin,amd64,ios
// +build !x509omitbundledroots
package x509
// +build ignore
-// Generates root_darwin_arm64.go.
+// Generates root_darwin_ios.go.
//
// As of iOS 13, there is no API for querying the system trusted X.509 root
// certificates.
)
func main() {
- var output = flag.String("output", "root_darwin_arm64.go", "file name to write")
+ var output = flag.String("output", "root_darwin_ios.go", "file name to write")
var version = flag.String("version", "", "security_certificates version")
flag.Parse()
if *version == "" {
}
}
-const header = `// Code generated by root_darwin_arm64_gen.go -version %s; DO NOT EDIT.
+const header = `// Code generated by root_darwin_ios_gen.go -version %s; DO NOT EDIT.
// Update the version in root.go and regenerate with "go generate".
+// +build darwin,arm64 darwin,amd64,ios
// +build !x509omitbundledroots
package x509
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build darwin,arm64,x509omitbundledroots
+// +build darwin,arm64 darwin,amd64,ios
+// +build x509omitbundledroots
// This file provides the loadSystemRoots func when the
// "x509omitbundledroots" build tag has disabled bundling a copy,
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build darwin,arm64,x509omitbundledroots
+// +build darwin,arm64 darwin,amd64,ios
+// +build x509omitbundledroots
package x509