Update and clean Tomato RAF files
[tomato.git] / release / src / router / nginx / src / core / ngx_sha1.h
blob81c909e2f3d5b5ac9fedaf327d6a93ce7f56c385
2 /*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Nginx, Inc.
5 */
8 #ifndef _NGX_SHA1_H_INCLUDED_
9 #define _NGX_SHA1_H_INCLUDED_
12 #include <ngx_config.h>
13 #include <ngx_core.h>
16 #if (NGX_HAVE_OPENSSL_SHA1_H)
17 #include <openssl/sha.h>
18 #else
19 #include <sha.h>
20 #endif
23 typedef SHA_CTX ngx_sha1_t;
26 #define ngx_sha1_init SHA1_Init
27 #define ngx_sha1_update SHA1_Update
28 #define ngx_sha1_final SHA1_Final
31 #endif /* _NGX_SHA1_H_INCLUDED_ */