Commit 87ed96bf authored by Niels Möller's avatar Niels Möller
Browse files

(format_hex_string): Export this function.

Rev: src/format.c:1.43
Rev: src/format.h:1.35
parent 59dc8153
......@@ -73,7 +73,6 @@ void ssh_format_write(const char *format, UINT32 length, UINT8 *buffer, ...)
}
static int write_decimal_length(UINT8 *buffer, UINT32 n);
static void format_hex_string(UINT8 *buffer, UINT32 length, const UINT8 *data);
UINT32 ssh_vformat_length(const char *f, va_list args)
{
......@@ -566,7 +565,8 @@ unsigned format_size_in_decimal(UINT32 n)
}
static void format_hex_string(UINT8 *buffer, UINT32 length, const UINT8 *data)
void
format_hex_string(UINT8 *buffer, UINT32 length, const UINT8 *data)
{
static const UINT8 hexchars[16] = "0123456789abcdef";
UINT32 i;
......
......@@ -83,6 +83,7 @@ void ssh_format_write(const char *format, UINT32 length, UINT8 *buffer, ...);
UINT32 ssh_vformat_length(const char *format, va_list args);
void ssh_vformat_write(const char *format, UINT32 length, UINT8 *buffer, va_list args);
void format_hex_string(UINT8 *dst, UINT32 length, const UINT8 *data);
/* FIXME: Do we need a variant that handles non-const strings? */
/* Returns an ordinary NUL-terminated string, or NULL if the string
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment