Change need_hexify so it optionally tests for printable UTF-8 as opposed

to printable ASCII.
This commit is contained in:
magnum
2016-11-05 13:36:55 +01:00
parent fb8fb6b21d
commit 7d7ca48704
5 changed files with 82 additions and 9 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
#include <ctype.h>
bool need_hexify (const u8 *buf, const int len);
bool need_hexify (const u8 *buf, const int len, bool accept_utf8);
void exec_hexify (const u8 *buf, const int len, u8 *out);
bool is_valid_hex_char (const u8 c);