From 15bde4c46b707f7a95c7ea6650a3f02d67e50530 Mon Sep 17 00:00:00 2001 From: David Timber Date: Mon, 12 Jul 2021 16:16:22 +1000 Subject: Impl proone-htbtclient, bugfix, --enable-mttools * Remove --enable-hostinfod and add --enable-mttools, which enables hostinfod and htbtclient * Change PRNE_HTBT_PROTO_PORT so that the macro can be used in another macro expression(for help message) * Add prne_mbedtls_perror() * proone-htbtclient: implement hostinfo command * proone-htbthost * Add --hostcred option * Response with status frame on ENOMEM * htbt: add prne_htbt_serrc_tostr() and prne_htbt_gen_msgid() * Add prne_ctoupper(), prne_ctolower(), prne_cisspace(), prne_cisprint() * The added functions are the locale-independent equivalent of their POSIX counterparts * Remove Use of the POSIX functions * Add test unit --- src/proone-hostinfod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/proone-hostinfod.c') diff --git a/src/proone-hostinfod.c b/src/proone-hostinfod.c index f9e2d89..1726b7c 100644 --- a/src/proone-hostinfod.c +++ b/src/proone-hostinfod.c @@ -909,13 +909,13 @@ static bool handle_db_qe ( const char *pr[2] = { qv.cred_id, qv.cred_pw }; for (const char *p = pr[0]; *p != 0; p += 1) { - if (!isprint(*p)) { + if (!prne_cisspace(*p)) { pr[0] = "(bin)"; break; } } for (const char *p = pr[1]; *p != 0; p += 1) { - if (!isprint(*p)) { + if (!prne_cisspace(*p)) { pr[1] = "(bin)"; break; } -- cgit