ngx_sha1.h
Igor Sysoev
14 years ago
21 | 21 |
src/core/ngx_crc.h \
|
22 | 22 |
src/core/ngx_crc32.h \
|
23 | 23 |
src/core/ngx_md5.h \
|
|
24 |
src/core/ngx_sha1.h \
|
24 | 25 |
src/core/ngx_rbtree.h \
|
25 | 26 |
src/core/ngx_radix_tree.h \
|
26 | 27 |
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_ */
|