aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_string.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-04 22:12:39 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-11-04 22:12:39 +0000
commit9cc1acef18220cfc3b66d0a761f1f7c39e0b5c29 (patch)
tree8c40a56b42bd6d0071bdd3f683cf1b520fd502a8 /src/core/ngx_string.c
parentf60b1a5cd9f6e509caf4513f1b28ae33cb3dae4e (diff)
downloadnginx-9cc1acef18220cfc3b66d0a761f1f7c39e0b5c29.tar.gz
nginx-9cc1acef18220cfc3b66d0a761f1f7c39e0b5c29.zip
nginx-0.0.1-2003-11-05-01:12:39 import
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r--src/core/ngx_string.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c
index 312e81992..a007cac79 100644
--- a/src/core/ngx_string.c
+++ b/src/core/ngx_string.c
@@ -69,6 +69,15 @@ int ngx_atoi(char *line, size_t n)
}
+void ngx_print_md5(char *text, u_char *md5)
+{
+ ngx_snprintf(text, 33, "%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x",
+ md5[0], md5[1], md5[2], md5[3], md5[4], md5[5],
+ md5[6], md5[7], md5[8], md5[9], md5[10], md5[11],
+ md5[12], md5[13], md5[14], md5[15]);
+}
+
+
#if 0
char *ngx_psprintf(ngx_pool_t *p, const char *fmt, ...)
{