summaryrefslogtreecommitdiff
path: root/internal/prefer_openssl/prefer.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-12-10 21:04:17 +0100
committerJakob Unterwurzacher2016-12-10 21:04:17 +0100
commit8be54bf3f8c011f2d0635017f01883af6563b482 (patch)
treeb383f93934e7103be6d311ecb328b5b9e607fad1 /internal/prefer_openssl/prefer.go
parent12374be9c51b0298c85751e4652fe4e852c85546 (diff)
prefer_openssl: default to Go GCM on OSX
Diffstat (limited to 'internal/prefer_openssl/prefer.go')
-rw-r--r--internal/prefer_openssl/prefer.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/prefer_openssl/prefer.go b/internal/prefer_openssl/prefer.go
index e06f0d5..74c26b7 100644
--- a/internal/prefer_openssl/prefer.go
+++ b/internal/prefer_openssl/prefer.go
@@ -5,7 +5,6 @@ package prefer_openssl
import (
"io/ioutil"
"regexp"
- "runtime"
"github.com/rfjakob/gocryptfs/internal/tlog"
)
@@ -19,10 +18,6 @@ import (
// filePreferOpenSSL takes an explicit filename so it can be tested with saved
// cpuinfo files instead of /proc/cpuinfo.
func filePreferOpenSSL(file string) bool {
- if runtime.GOOS == "darwin" && file == "/proc/cpuinfo" {
- // OSX does not have /proc, let's not warn about it.
- return true
- }
ci, err := ioutil.ReadFile(file)
if err != nil {
return true