summaryrefslogtreecommitdiff
path: root/src/pkg/crypto/x509/root_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/crypto/x509/root_darwin.go')
-rw-r--r--src/pkg/crypto/x509/root_darwin.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/pkg/crypto/x509/root_darwin.go b/src/pkg/crypto/x509/root_darwin.go
deleted file mode 100644
index 2a61d36ea..000000000
--- a/src/pkg/crypto/x509/root_darwin.go
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2013 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.
-
-package x509
-
-import "os/exec"
-
-func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
- return nil, nil
-}
-
-func execSecurityRoots() (*CertPool, error) {
- cmd := exec.Command("/usr/bin/security", "find-certificate", "-a", "-p", "/System/Library/Keychains/SystemRootCertificates.keychain")
- data, err := cmd.Output()
- if err != nil {
- return nil, err
- }
-
- roots := NewCertPool()
- roots.AppendCertsFromPEM(data)
- return roots, nil
-}