Mercurial > dropbear
comparison cli-runopts.c @ 1213:7fd1211a1f63
Use dropbear_log instead of some fprintf's in client code.
author | Konstantin Tokarev <ktokarev@smartlabs.tv> |
---|---|
date | Tue, 01 Dec 2015 21:56:11 +0300 |
parents | bf626d259eb1 |
children | d058e15ea213 |
comparison
equal
deleted
inserted
replaced
1212:bf626d259eb1 | 1213:7fd1211a1f63 |
---|---|
489 | 489 |
490 key = new_sign_key(); | 490 key = new_sign_key(); |
491 keytype = DROPBEAR_SIGNKEY_ANY; | 491 keytype = DROPBEAR_SIGNKEY_ANY; |
492 if ( readhostkey(filename, key, &keytype) != DROPBEAR_SUCCESS ) { | 492 if ( readhostkey(filename, key, &keytype) != DROPBEAR_SUCCESS ) { |
493 if (warnfail) { | 493 if (warnfail) { |
494 fprintf(stderr, "Failed loading keyfile '%s'\n", filename); | 494 dropbear_log(LOG_WARNING, "Failed loading keyfile '%s'\n", filename); |
495 } | 495 } |
496 sign_key_free(key); | 496 sign_key_free(key); |
497 } else { | 497 } else { |
498 key->type = keytype; | 498 key->type = keytype; |
499 key->source = SIGNKEY_SOURCE_RAW_FILE; | 499 key->source = SIGNKEY_SOURCE_RAW_FILE; |