Mercurial > hg > nginx
comparison src/core/ngx_string.h @ 3756:7224d008faaf
new ngx_http_secure_link_module with secure_link, secure_link_md5, and
secure_link_expires
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 02 Sep 2010 14:37:16 +0000 |
parents | 5d3282cfc43c |
children | e7798b5e990a |
comparison
equal
deleted
inserted
replaced
3755:76e3a93821b1 | 3756:7224d008faaf |
---|---|
176 #define ngx_base64_encoded_length(len) (((len + 2) / 3) * 4) | 176 #define ngx_base64_encoded_length(len) (((len + 2) / 3) * 4) |
177 #define ngx_base64_decoded_length(len) (((len + 3) / 4) * 3) | 177 #define ngx_base64_decoded_length(len) (((len + 3) / 4) * 3) |
178 | 178 |
179 void ngx_encode_base64(ngx_str_t *dst, ngx_str_t *src); | 179 void ngx_encode_base64(ngx_str_t *dst, ngx_str_t *src); |
180 ngx_int_t ngx_decode_base64(ngx_str_t *dst, ngx_str_t *src); | 180 ngx_int_t ngx_decode_base64(ngx_str_t *dst, ngx_str_t *src); |
181 ngx_int_t ngx_decode_base64url(ngx_str_t *dst, ngx_str_t *src); | |
181 | 182 |
182 uint32_t ngx_utf8_decode(u_char **p, size_t n); | 183 uint32_t ngx_utf8_decode(u_char **p, size_t n); |
183 size_t ngx_utf8_length(u_char *p, size_t n); | 184 size_t ngx_utf8_length(u_char *p, size_t n); |
184 u_char *ngx_utf8_cpystrn(u_char *dst, u_char *src, size_t n, size_t len); | 185 u_char *ngx_utf8_cpystrn(u_char *dst, u_char *src, size_t n, size_t len); |
185 | 186 |