Mercurial > hg > nginx-vendor-current
annotate src/core/ngx_md5.h @ 648:f200748c0ac8 NGINX_1_1_8
nginx 1.1.8
*) Change: the ngx_http_limit_zone_module was renamed to the
ngx_http_limit_conn_module.
*) Change: the "limit_zone" directive was superseded by the
"limit_conn_zone" directive with a new syntax.
*) Feature: support for multiple "limit_conn" limits on the same level.
*) Feature: the "image_filter_sharpen" directive.
*) Bugfix: a segmentation fault might occur in a worker process if
resolver got a big DNS response.
Thanks to Ben Hawkes.
*) Bugfix: in cache key calculation if internal MD5 implementation was
used; the bug had appeared in 1.0.4.
*) Bugfix: the "If-Modified-Since", "If-Range", etc. client request
header lines might be passed to backend while caching; or not passed
without caching if caching was enabled in another part of the
configuration.
*) Bugfix: the module ngx_http_mp4_module sent incorrect
"Content-Length" response header line if the "start" argument was
used.
Thanks to Piotr Sikora.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 14 Nov 2011 00:00:00 +0400 |
parents | 83b58b182b76 |
children | d0f7a625f27c |
rev | line source |
---|---|
342 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_MD5_H_INCLUDED_ | |
8 #define _NGX_MD5_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
622 | 15 #if (NGX_HAVE_MD5) |
16 | |
342 | 17 #if (NGX_HAVE_OPENSSL_MD5_H) |
18 #include <openssl/md5.h> | |
19 #else | |
20 #include <md5.h> | |
21 #endif | |
22 | |
23 | |
24 typedef MD5_CTX ngx_md5_t; | |
25 | |
26 | |
27 #if (NGX_OPENSSL_MD5) | |
28 | |
344 | 29 #define ngx_md5_init MD5_Init |
30 #define ngx_md5_update MD5_Update | |
31 #define ngx_md5_final MD5_Final | |
342 | 32 |
33 #else | |
34 | |
344 | 35 #define ngx_md5_init MD5Init |
36 #define ngx_md5_update MD5Update | |
37 #define ngx_md5_final MD5Final | |
342 | 38 |
39 #endif | |
40 | |
41 | |
622 | 42 #else /* !NGX_HAVE_MD5 */ |
43 | |
44 | |
45 typedef struct { | |
46 uint64_t bytes; | |
47 uint32_t a, b, c, d; | |
48 u_char buffer[64]; | |
49 } ngx_md5_t; | |
50 | |
51 | |
52 void ngx_md5_init(ngx_md5_t *ctx); | |
628 | 53 void ngx_md5_update(ngx_md5_t *ctx, const void *data, size_t size); |
622 | 54 void ngx_md5_final(u_char result[16], ngx_md5_t *ctx); |
55 | |
56 | |
57 #endif | |
58 | |
342 | 59 #endif /* _NGX_MD5_H_INCLUDED_ */ |