Klaus Demo nginx / 7b4d026
ngx_sha1.h Igor Sysoev 14 years ago
2 changed file(s) with 31 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2121 src/core/ngx_crc.h \
2222 src/core/ngx_crc32.h \
2323 src/core/ngx_md5.h \
24 src/core/ngx_sha1.h \
2425 src/core/ngx_rbtree.h \
2526 src/core/ngx_radix_tree.h \
2627 src/core/ngx_slab.h \
0
1 /*
2 * Copyright (C) Igor Sysoev
3 */
4
5
6 #ifndef _NGX_SHA1_H_INCLUDED_
7 #define _NGX_SHA1_H_INCLUDED_
8
9
10 #include <ngx_config.h>
11 #include <ngx_core.h>
12
13
14 #if (NGX_HAVE_OPENSSL_SHA1_H)
15 #include <openssl/sha.h>
16 #else
17 #include <sha.h>
18 #endif
19
20
21 typedef SHA_CTX ngx_sha1_t;
22
23
24 #define ngx_sha1_init SHA1_Init
25 #define ngx_sha1_update SHA1_Update
26 #define ngx_sha1_final SHA1_Final
27
28
29 #endif /* _NGX_SHA1_H_INCLUDED_ */