aboutsummaryrefslogtreecommitdiff
path: root/internal/speed/speed.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-02-23 00:04:51 +0100
committerJakob Unterwurzacher2017-02-23 00:04:51 +0100
commit477071d673f0d7e91c837459d9098744a5ec7d59 (patch)
treea9b03dad3a8912a12d465c93df03e81459c7c1ef /internal/speed/speed.go
parent1e03e059fa0980db8d527f1c01094999d8813b95 (diff)
speed: fix build for Go 1.4 and lower
Old Go versions miss cipher.NewGCMWithNonceSize, which causes: internal/speed/speed.go:95: undefined: cipher.NewGCMWithNonceSize
Diffstat (limited to 'internal/speed/speed.go')
-rw-r--r--internal/speed/speed.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/speed/speed.go b/internal/speed/speed.go
index f9bf93c..bc829d4 100644
--- a/internal/speed/speed.go
+++ b/internal/speed/speed.go
@@ -1,3 +1,5 @@
+// +build go1.5
+
// Package speed implements the "-speed" command-line option,
// similar to "openssl speed".
// It benchmarks the crypto algorithms and libraries used by