aboutsummaryrefslogtreecommitdiff
path: root/internal/stupidgcm/without_openssl.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-12-10 11:50:16 +0100
committerJakob Unterwurzacher2016-12-10 11:54:36 +0100
commitc9f4400e6dc71a36df5dc9725f52a8968f5f9803 (patch)
tree601cff97e2f5d472a68e3a133da43237af032521 /internal/stupidgcm/without_openssl.go
parent6c86afb5cd63b099d1762da1a2ce3f76703dc4fb (diff)
Replace all calls to naked panic() with log.Panic()
We want all panics to show up in the syslog.
Diffstat (limited to 'internal/stupidgcm/without_openssl.go')
-rw-r--r--internal/stupidgcm/without_openssl.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/internal/stupidgcm/without_openssl.go b/internal/stupidgcm/without_openssl.go
index 91dd33c..9fb245e 100644
--- a/internal/stupidgcm/without_openssl.go
+++ b/internal/stupidgcm/without_openssl.go
@@ -3,6 +3,7 @@
package stupidgcm
import (
+ "log"
"os"
"github.com/rfjakob/gocryptfs/internal/tlog"
@@ -24,25 +25,25 @@ func New(_ []byte) stupidGCM {
errExit()
// This panic is never reached, but having it here stops the Go compiler
// from complaining about the missing return code.
- panic("")
+ log.Panic("")
}
func (g stupidGCM) NonceSize() int {
errExit()
- panic("")
+ log.Panic("")
}
func (g stupidGCM) Overhead() int {
errExit()
- panic("")
+ log.Panic("")
}
func (g stupidGCM) Seal(_, _, _, _ []byte) []byte {
errExit()
- panic("")
+ log.Panic("")
}
func (g stupidGCM) Open(_, _, _, _ []byte) ([]byte, error) {
errExit()
- panic("")
+ log.Panic("")
}