Klaus Demo nginx / d883df2
ngx_md5.h Igor Sysoev 14 years ago
2 changed file(s) with 41 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2020 src/core/ngx_file.h \
2121 src/core/ngx_crc.h \
2222 src/core/ngx_crc32.h \
23 src/core/ngx_md5.h \
2324 src/core/ngx_rbtree.h \
2425 src/core/ngx_radix_tree.h \
2526 src/core/ngx_slab.h \
0
1 /*
2 * Copyright (C) Igor Sysoev
3 */
4
5
6 #ifndef _NGX_MD5_H_INCLUDED_
7 #define _NGX_MD5_H_INCLUDED_
8
9
10 #include <ngx_config.h>
11 #include <ngx_core.h>
12
13
14 #if (NGX_HAVE_OPENSSL_MD5_H)
15 #include <openssl/md5.h>
16 #else
17 #include <md5.h>
18 #endif
19
20
21 typedef MD5_CTX ngx_md5_t;
22
23
24 #if (NGX_OPENSSL_MD5)
25
26 #define ngx_md5_init MD5_Init
27 #define ngx_md5_update MD5_Update
28 #define ngx_md5_final MD5_Final
29
30 #else
31
32 #define ngx_md5_init MD5Init
33 #define ngx_md5_update MD5Update
34 #define ngx_md5_final MD5Final
35
36 #endif
37
38
39 #endif /* _NGX_MD5_H_INCLUDED_ */