Skip to content

Commit 8691192

Browse files
authored
Disable logging of digest password (#70)
1 parent 05fb8ec commit 8691192

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/kotlin/at/bitfire/dav4jvm/BasicDigestAuthHandler.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ class BasicDigestAuthHandler(
200200
else ->
201201
null
202202
}
203-
logger.finer("A1=$a1")
203+
// Contains password! Only uncomment for debugging:
204+
// logger.finer("A1=$a1")
204205

205206
val a2: String? = when (qop) {
206207
Protection.Auth ->
@@ -215,7 +216,7 @@ class BasicDigestAuthHandler(
215216
}
216217
}
217218
}
218-
logger.finer("A2=$a2")
219+
// logger.finer("A2=$a2")
219220

220221
if (a1 != null && a2 != null)
221222
response = kd(h(a1), "$nonce:$ncValue:$clientNonce:${qop.qop}:${h(a2)}")

0 commit comments

Comments
 (0)