aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-04 09:51:14 +0200
committerJakob Unterwurzacher2016-10-04 09:51:14 +0200
commit56c0b19612dd25b84474211c1a84897fe89ce7d4 (patch)
tree7eeaa30a90f9cbcc75b7c91853b759f4eb7c034a /main.go
parenta00402cc47d245355c6556a17a1cacaf5102a31c (diff)
without_openssl: support compiling completely without openssl
Build helper script: build-without-openssl.bash
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.go b/main.go
index 5f2ce73..a22dd08 100644
--- a/main.go
+++ b/main.go
@@ -25,6 +25,7 @@ import (
"github.com/rfjakob/gocryptfs/internal/fusefrontend"
"github.com/rfjakob/gocryptfs/internal/fusefrontend_reverse"
"github.com/rfjakob/gocryptfs/internal/readpassword"
+ "github.com/rfjakob/gocryptfs/internal/stupidgcm"
"github.com/rfjakob/gocryptfs/internal/tlog"
)
@@ -103,9 +104,13 @@ func printVersion() {
t := time.Unix(i, 0).UTC()
humanTime = fmt.Sprintf("%d-%02d-%02d", t.Year(), t.Month(), t.Day())
}
+ buildFlags := ""
+ if stupidgcm.BuiltWithoutOpenssl {
+ buildFlags = " without_openssl"
+ }
built := fmt.Sprintf("%s %s", humanTime, runtime.Version())
- fmt.Printf("%s %s; go-fuse %s; %s\n",
- tlog.ProgramName, GitVersion, GitVersionFuse, built)
+ fmt.Printf("%s %s%s; go-fuse %s; %s\n",
+ tlog.ProgramName, GitVersion, buildFlags, GitVersionFuse, built)
}
func main() {