annotate src/core/ngx_md5.h @ 332:2eea67ed0bc2 NGINX_0_5_36

nginx 0.5.36 *) Bugfix: the "sub_filter" directive might set text to change into output. *) Bugfix: a segmentation fault occurred in worker process, if empty stub block was used second time in SSI. *) Bugfix: the "proxy_store" and "fastcgi_store" directives did not check a response length. *) Bugfix: nginx issued the bogus error message "SSL_shutdown() failed (SSL: )"; bug appeared in 0.5.35. *) Bugfix: in HTTPS mode requests might fail with the "bad write retry" error; bug appeared in 0.5.35. *) Bugfix: the "fastcgi_catch_stderr" directive did return error code; now it returns 502 code, that can be rerouted to a next server using the "fastcgi_next_upstream invalid_header" directive. *) Bugfix: a segmentation fault occurred in master process if the "fastcgi_catch_stderr" directive was used; bug appeared in 0.5.32. Thanks to Manlio Perillo.
author Igor Sysoev <http://sysoev.ru>
date Sun, 04 May 2008 00:00:00 +0400
parents 26ff8d6b618d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
328
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
1
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
2 /*
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
3 * Copyright (C) Igor Sysoev
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
4 */
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
5
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
6
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
7 #ifndef _NGX_MD5_H_INCLUDED_
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
8 #define _NGX_MD5_H_INCLUDED_
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
9
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
10
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
11 #include <ngx_config.h>
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
12 #include <ngx_core.h>
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
13
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
14
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
15 #if (NGX_HAVE_OPENSSL_MD5_H)
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
16 #include <openssl/md5.h>
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
17 #else
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
18 #include <md5.h>
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
19 #endif
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
20
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
21
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
22 typedef MD5_CTX ngx_md5_t;
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
23
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
24
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
25 #if (NGX_OPENSSL_MD5)
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
26
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
27 #define ngx_md5_init MD5_Init
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
28 #define ngx_md5_update MD5_Update
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
29 #define ngx_md5_final MD5_Final
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
30
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
31 #else
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
32
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
33 #define ngx_md5_init MD5Init
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
34 #define ngx_md5_update MD5Update
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
35 #define ngx_md5_final MD5Final
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
36
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
37 #endif
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
38
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
39
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
40 #endif /* _NGX_MD5_H_INCLUDED_ */