summaryrefslogtreecommitdiffhomepage
path: root/cli-session.c
diff options
context:
space:
mode:
authorKonstantin Tokarev <ktokarev@smartlabs.tv>2015-12-01 21:55:34 +0300
committerKonstantin Tokarev <ktokarev@smartlabs.tv>2015-12-15 16:52:53 +0300
commit3cb278c35c8889a2738f4f70775ec7f8036e76a4 (patch)
tree4b4642bc032e6ea75680a79b4c43e62c16c695eb /cli-session.c
parentc59827334cdd9e2e25ae3b75d73045d1fca3fa69 (diff)
Support syslog logging in dbclient.
Diffstat (limited to 'cli-session.c')
-rw-r--r--cli-session.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli-session.c b/cli-session.c
index 9be958e..a93d192 100644
--- a/cli-session.c
+++ b/cli-session.c
@@ -269,6 +269,11 @@ static void cli_sessionloop() {
return;
case USERAUTH_SUCCESS_RCVD:
+#ifndef DISABLE_SYSLOG
+ if (opts.usingsyslog) {
+ dropbear_log(LOG_INFO, "Authentication succeeded.");
+ }
+#endif
#ifdef DROPBEAR_NONE_CIPHER
if (cli_ses.cipher_none_after_auth)