summaryrefslogtreecommitdiffstats
path: root/include/httpd.h
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2012-12-16 12:49:14 +0100
committerStefan Fritsch <sf@apache.org>2012-12-16 12:49:14 +0100
commitc39c61637eb0408a1432cf10cf9e4b5a3dfe4fb8 (patch)
tree992f682ba5893f411a37af9ea3b3769ac4a0053d /include/httpd.h
parentremove unused variable (diff)
downloadapache2-c39c61637eb0408a1432cf10cf9e4b5a3dfe4fb8.tar.xz
apache2-c39c61637eb0408a1432cf10cf9e4b5a3dfe4fb8.zip
add new ap_bin2hex() utility function
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1422549 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/httpd.h')
-rw-r--r--include/httpd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/httpd.h b/include/httpd.h
index c117ccf82e..4d12b3d506 100644
--- a/include/httpd.h
+++ b/include/httpd.h
@@ -2251,6 +2251,14 @@ AP_DECLARE(void) ap_get_sload(ap_sload_t *ld);
*/
AP_DECLARE(void) ap_get_loadavg(ap_loadavg_t *ld);
+/**
+ * Convert binary data into a hex string
+ * @param src pointer to the data
+ * @param srclen length of the data
+ * @param dest pointer to buffer of length (2 * srclen + 1). The resulting
+ * string will be NUL-terminated.
+ */
+AP_DECLARE(void) ap_bin2hex(const void *src, apr_size_t srclen, char *dest);
#define AP_NORESTART APR_OS_START_USEERR + 1