annotate src/core/ngx_sha1.h @ 330:c60beecc6ab5 NGINX_0_5_35

nginx 0.5.35 *) Change: now the ngx_http_userid_module adds start time microseconds to the cookie field contains a pid value. *) Change: now the uname(2) is used on Linux instead of procfs. Thanks to Ilya Novikov. *) Feature: the "If-Range" request header line support. Thanks to Alexander V. Inyukhin. *) Bugfix: in HTTPS mode requests might fail with the "bad write retry" error; bug appeared in 0.5.13. *) Bugfix: the STARTTLS in SMTP mode did not work. Thanks to Oleg Motienko. *) Bugfix: large_client_header_buffers did not freed before going to keep-alive state. Thanks to Olexander Shtepa. *) Bugfix: the "limit_rate" directive did not allow to use full throughput, even if limit value was very high. *) Bugfix: the $status variable was equal to 0 if a proxied server returned response in HTTP/0.9 version. *) Bugfix: if the "?" character was in a "error_page" directive, then it was escaped in a proxied request; bug appeared in 0.5.32.
author Igor Sysoev <http://sysoev.ru>
date Tue, 08 Jan 2008 00:00:00 +0300
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_SHA1_H_INCLUDED_
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
8 #define _NGX_SHA1_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_SHA1_H)
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
16 #include <openssl/sha.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 <sha.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 SHA_CTX ngx_sha1_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 #define ngx_sha1_init SHA1_Init
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
26 #define ngx_sha1_update SHA1_Update
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
27 #define ngx_sha1_final SHA1_Final
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
28
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
29
26ff8d6b618d nginx 0.5.34
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
30 #endif /* _NGX_SHA1_H_INCLUDED_ */