annotate src/core/ngx_sha1.h @ 334:42974b9e97b5 NGINX_0_5_37

nginx 0.5.37 *) Bugfix: if sub_filter and SSI were used together, then responses might were transferred incorrectly. *) Bugfix: large SSI inclusions might be truncated. *) Bugfix: worker processes might not catch reconfiguration and log rotation signals. *) Bugfix: nginx could not be built on latest Fedora 9 Linux. Thanks to Roxis. *) Bugfix: a segmentation fault might occur in worker process on Linux, if keepalive was enabled. *) Bugfix: an alert "sendmsg() failed (9: Bad file descriptor)" on some 64-bit platforms while reconfiguration.
author Igor Sysoev <http://sysoev.ru>
date Mon, 07 Jul 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_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_ */