Mercurial > hg > nginx
comparison src/core/ngx_string.c @ 175:e92c2c647c57
nginx-0.0.1-2003-11-05-20:03:41 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 05 Nov 2003 17:03:41 +0000 |
parents | ea464a6c0581 |
children | c0552e5ab567 |
comparison
equal
deleted
inserted
replaced
174:ea464a6c0581 | 175:e92c2c647c57 |
---|---|
67 return value; | 67 return value; |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 | 71 |
72 void ngx_print_md5(char *text, u_char *md5) | 72 void ngx_md5_text(char *text, u_char *md5) |
73 { | 73 { |
74 ngx_snprintf(text, 33, "%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x%0x", | 74 /* STUB */ |
75 md5[0], md5[1], md5[2], md5[3], md5[4], md5[5], | 75 |
76 md5[6], md5[7], md5[8], md5[9], md5[10], md5[11], | 76 ngx_snprintf(text, 33, |
77 md5[12], md5[13], md5[14], md5[15]); | 77 "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", |
78 md5[0], md5[1], md5[2], md5[3], md5[4], md5[5], | |
79 md5[6], md5[7], md5[8], md5[9], md5[10], md5[11], | |
80 md5[12], md5[13], md5[14], md5[15]); | |
78 } | 81 } |
79 | 82 |
80 | 83 |
81 #if 0 | 84 #if 0 |
82 char *ngx_psprintf(ngx_pool_t *p, const char *fmt, ...) | 85 char *ngx_psprintf(ngx_pool_t *p, const char *fmt, ...) |