diff options
author | Jakob Unterwurzacher | 2016-05-04 20:15:11 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-05-04 20:15:11 +0200 |
commit | 6c010c30805f674de0f92072bb54c08d2e5b37e9 (patch) | |
tree | d27fa7b96015e2e8ce074fa45aff2002d7ca1632 | |
parent | 86eb37e41a6caa434a8c06ed5b1743c836944853 (diff) |
stupidgcm: fix copy-paste error in panic message
Also, print the openssl version in Travis CI
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | internal/stupidgcm/stupidgcm.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index f58ea7b..a1f56f6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ install: # Travis does not support FUSE, so we can't just run "go test ./..." script: + - openssl version - go build - ./build.bash - go test ./internal/... diff --git a/internal/stupidgcm/stupidgcm.go b/internal/stupidgcm/stupidgcm.go index 6773a35..f92bc01 100644 --- a/internal/stupidgcm/stupidgcm.go +++ b/internal/stupidgcm/stupidgcm.go @@ -147,7 +147,7 @@ func (g stupidGCM) Open(dst, iv, in, authData []byte) ([]byte, error) { // Provide authentication data var resultLen C.int if C.EVP_DecryptUpdate(ctx, nil, &resultLen, (*C.uchar)(&authData[0]), C.int(len(authData))) != 1 { - log.Panic("EVP_EncryptUpdate authData failed") + log.Panic("EVP_DecryptUpdate authData failed") } if int(resultLen) != len(authData) { log.Panicf("Unexpected length %d", resultLen) |