Mercurial > hg > nginx
comparison src/core/ngx_string.h @ 5551:a602e1006579
Core: added ngx_encode_base64url().
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 04 Feb 2014 04:59:21 +0400 |
parents | 72e31d88defa |
children | 33c08d7e2915 |
comparison
equal
deleted
inserted
replaced
5550:3c5ddf0575d8 | 5551:a602e1006579 |
---|---|
181 | 181 |
182 #define ngx_base64_encoded_length(len) (((len + 2) / 3) * 4) | 182 #define ngx_base64_encoded_length(len) (((len + 2) / 3) * 4) |
183 #define ngx_base64_decoded_length(len) (((len + 3) / 4) * 3) | 183 #define ngx_base64_decoded_length(len) (((len + 3) / 4) * 3) |
184 | 184 |
185 void ngx_encode_base64(ngx_str_t *dst, ngx_str_t *src); | 185 void ngx_encode_base64(ngx_str_t *dst, ngx_str_t *src); |
186 void ngx_encode_base64url(ngx_str_t *dst, ngx_str_t *src); | |
186 ngx_int_t ngx_decode_base64(ngx_str_t *dst, ngx_str_t *src); | 187 ngx_int_t ngx_decode_base64(ngx_str_t *dst, ngx_str_t *src); |
187 ngx_int_t ngx_decode_base64url(ngx_str_t *dst, ngx_str_t *src); | 188 ngx_int_t ngx_decode_base64url(ngx_str_t *dst, ngx_str_t *src); |
188 | 189 |
189 uint32_t ngx_utf8_decode(u_char **p, size_t n); | 190 uint32_t ngx_utf8_decode(u_char **p, size_t n); |
190 size_t ngx_utf8_length(u_char *p, size_t n); | 191 size_t ngx_utf8_length(u_char *p, size_t n); |