mirror of
https://github.com/clearml/dropbear
synced 2025-02-12 07:25:30 +00:00
Use dropbear_log instead of some fprintf's in client code.
This commit is contained in:
parent
3cb278c35c
commit
5ab562f695
@ -190,7 +190,7 @@ static void ask_to_confirm(unsigned char* keyblob, unsigned int keybloblen,
|
|||||||
|
|
||||||
fp = sign_key_fingerprint(keyblob, keybloblen);
|
fp = sign_key_fingerprint(keyblob, keybloblen);
|
||||||
if (cli_opts.always_accept_key) {
|
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,
|
cli_opts.remotehost,
|
||||||
algoname,
|
algoname,
|
||||||
fp);
|
fp);
|
||||||
@ -290,7 +290,7 @@ static void checkhostkey(unsigned char* keyblob, unsigned int keybloblen) {
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (cli_opts.no_hostkey_check) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -491,7 +491,7 @@ static void loadidentityfile(const char* filename, int warnfail) {
|
|||||||
keytype = DROPBEAR_SIGNKEY_ANY;
|
keytype = DROPBEAR_SIGNKEY_ANY;
|
||||||
if ( readhostkey(filename, key, &keytype) != DROPBEAR_SUCCESS ) {
|
if ( readhostkey(filename, key, &keytype) != DROPBEAR_SUCCESS ) {
|
||||||
if (warnfail) {
|
if (warnfail) {
|
||||||
fprintf(stderr, "Failed loading keyfile '%s'\n", filename);
|
dropbear_log(LOG_WARNING, "Failed loading keyfile '%s'\n", filename);
|
||||||
}
|
}
|
||||||
sign_key_free(key);
|
sign_key_free(key);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user