summaryrefslogtreecommitdiff
path: root/internal/stupidgcm
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-07-14 23:22:15 +0200
committerJakob Unterwurzacher2017-07-14 23:22:15 +0200
commitccf1a84e417e9f7d83f31c61c44cf3851703b1e4 (patch)
tree69163223fab7c2dd86076c20f83a2a04dd6b6643 /internal/stupidgcm
parent61e964457d27cbe7cbedaa7bf81d1e78f685960b (diff)
macos: make testing without openssl work properly
On MacOS, building and testing without openssl is much easier. The tests should skip tests that fail because of missing openssl instead of aborting. Fixes https://github.com/rfjakob/gocryptfs/issues/123
Diffstat (limited to 'internal/stupidgcm')
-rw-r--r--internal/stupidgcm/stupidgcm_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/stupidgcm/stupidgcm_test.go b/internal/stupidgcm/stupidgcm_test.go
index f652c45..b340179 100644
--- a/internal/stupidgcm/stupidgcm_test.go
+++ b/internal/stupidgcm/stupidgcm_test.go
@@ -1,3 +1,5 @@
+// +build !without_openssl
+
// We compare against Go's built-in GCM implementation. Since stupidgcm only
// supports 128-bit IVs and Go only supports that from 1.5 onward, we cannot
// run these tests on older Go versions.