diff options
author | Jakob Unterwurzacher | 2016-10-04 09:51:14 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-10-04 09:51:14 +0200 |
commit | 56c0b19612dd25b84474211c1a84897fe89ce7d4 (patch) | |
tree | 7eeaa30a90f9cbcc75b7c91853b759f4eb7c034a /internal/prefer_openssl/prefer_go1.5.go | |
parent | a00402cc47d245355c6556a17a1cacaf5102a31c (diff) |
without_openssl: support compiling completely without openssl
Build helper script: build-without-openssl.bash
Diffstat (limited to 'internal/prefer_openssl/prefer_go1.5.go')
-rw-r--r-- | internal/prefer_openssl/prefer_go1.5.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/prefer_openssl/prefer_go1.5.go b/internal/prefer_openssl/prefer_go1.5.go index 51a07ab..7095314 100644 --- a/internal/prefer_openssl/prefer_go1.5.go +++ b/internal/prefer_openssl/prefer_go1.5.go @@ -3,7 +3,14 @@ package prefer_openssl +import ( + "github.com/rfjakob/gocryptfs/internal/stupidgcm" +) + func PreferOpenSSL() bool { + if stupidgcm.BuiltWithoutOpenssl { + return false + } // OpenSSL is always faster than Go GCM on old Go versions or on anything // other than amd64 return true |