aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_str.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_str.h')
-rw-r--r--src/microhttpd/mhd_str.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h
index dd74e602..284ad853 100644
--- a/src/microhttpd/mhd_str.h
+++ b/src/microhttpd/mhd_str.h
@@ -497,6 +497,21 @@ MHD_uint8_to_str_pad (uint8_t val,
497 char *buf, 497 char *buf,
498 size_t buf_size); 498 size_t buf_size);
499 499
500
501/**
502 * Convert @a size bytes from input binary data to lower case
503 * hexadecimal digits.
504 * Result is NOT zero-terminated
505 * @param bin the pointer to the binary data to convert
506 * @param size the size in bytes of the binary data to convert
507 * @param[out] hex the output buffer, should be at least 2 * @a size
508 * @return The number of characters written to the output buffer.
509 */
510size_t
511MHD_bin_to_hex (const void *bin,
512 size_t size,
513 char *hex);
514
500/** 515/**
501 * Convert @a size bytes from input binary data to lower case 516 * Convert @a size bytes from input binary data to lower case
502 * hexadecimal digits, zero-terminate the result. 517 * hexadecimal digits, zero-terminate the result.
@@ -507,9 +522,9 @@ MHD_uint8_to_str_pad (uint8_t val,
507 * not including terminating zero. 522 * not including terminating zero.
508 */ 523 */
509size_t 524size_t
510MHD_bin_to_hex (const void *bin, 525MHD_bin_to_hex_z (const void *bin,
511 size_t size, 526 size_t size,
512 char *hex); 527 char *hex);
513 528
514/** 529/**
515 * Convert hexadecimal digits to binary data. 530 * Convert hexadecimal digits to binary data.