aboutsummaryrefslogtreecommitdiff
path: root/cryptfs/log.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-10-07 21:26:17 +0200
committerJakob Unterwurzacher2015-10-07 21:26:17 +0200
commit65ba0739d5de756a437e0f840649583fa835a560 (patch)
tree09ada31a5e752d9e00a3f2424b8a53d2bc59bb0c /cryptfs/log.go
parent03502861ce9aaf3606b37b999d19ac25ccfbf06b (diff)
Implement "gocryptfs --passwd" (pasword changing)
Diffstat (limited to 'cryptfs/log.go')
-rw-r--r--cryptfs/log.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cryptfs/log.go b/cryptfs/log.go
index 0884473..2183679 100644
--- a/cryptfs/log.go
+++ b/cryptfs/log.go
@@ -30,6 +30,10 @@ func (l *logChannel) Enable() {
l.enabled = true
}
+func (l *logChannel) Disable() {
+ l.enabled = false
+}
+
// Only actually calculate the md5sum if the log channel is enabled to save
// CPU cycles
func (l *logChannel) Md5sum(buf []byte) string {