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 /main.go | |
parent | a00402cc47d245355c6556a17a1cacaf5102a31c (diff) |
without_openssl: support compiling completely without openssl
Build helper script: build-without-openssl.bash
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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() { |