summaryrefslogtreecommitdiff
path: root/cli-kex.c
diff options
context:
space:
mode:
authorKonstantin Tokarev <ktokarev@smartlabs.tv>2015-12-01 21:56:11 +0300
committerKonstantin Tokarev <ktokarev@smartlabs.tv>2015-12-01 21:56:11 +0300
commit9c7f98551c7971ab95db79378e392f7ac400be1d (patch)
tree55572b748c0bac4488b9c53bddc6f7f4bf7ad242 /cli-kex.c
parent15ce5654e0bfead8adf7c9b604f57fbb03cdf3f2 (diff)
downloaddropbear-9c7f98551c7971ab95db79378e392f7ac400be1d.tar.gz
Use dropbear_log instead of some fprintf's in client code.
Diffstat (limited to 'cli-kex.c')
-rw-r--r--cli-kex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli-kex.c b/cli-kex.c
index 07ee431..077fec9 100644
--- a/cli-kex.c
+++ b/cli-kex.c
@@ -190,7 +190,7 @@ static void ask_to_confirm(unsigned char* keyblob, unsigned int keybloblen,
fp = sign_key_fingerprint(keyblob, keybloblen);
if (cli_opts.always_accept_key) {
- fprintf(stderr, "\nHost '%s' key accepted unconditionally.\n(%s fingerprint %s)\n",
+ dropbear_log(LOG_INFO, "\nHost '%s' key accepted unconditionally.\n(%s fingerprint %s)\n",
cli_opts.remotehost,
algoname,
fp);
@@ -290,7 +290,7 @@ static void checkhostkey(unsigned char* keyblob, unsigned int keybloblen) {
int ret;
if (cli_opts.no_hostkey_check) {
- fprintf(stderr, "Caution, skipping hostkey check for %s\n", cli_opts.remotehost);
+ dropbear_log(LOG_INFO, "Caution, skipping hostkey check for %s\n", cli_opts.remotehost);
return;
}