mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
ngx_md5.h
This commit is contained in:
parent
6d5d61c8a3
commit
d883df2444
@ -21,6 +21,7 @@ CORE_DEPS="src/core/nginx.h \
|
||||
src/core/ngx_file.h \
|
||||
src/core/ngx_crc.h \
|
||||
src/core/ngx_crc32.h \
|
||||
src/core/ngx_md5.h \
|
||||
src/core/ngx_rbtree.h \
|
||||
src/core/ngx_radix_tree.h \
|
||||
src/core/ngx_slab.h \
|
||||
|
40
src/core/ngx_md5.h
Normal file
40
src/core/ngx_md5.h
Normal file
@ -0,0 +1,40 @@
|
||||
|
||||
/*
|
||||
* Copyright (C) Igor Sysoev
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _NGX_MD5_H_INCLUDED_
|
||||
#define _NGX_MD5_H_INCLUDED_
|
||||
|
||||
|
||||
#include <ngx_config.h>
|
||||
#include <ngx_core.h>
|
||||
|
||||
|
||||
#if (NGX_HAVE_OPENSSL_MD5_H)
|
||||
#include <openssl/md5.h>
|
||||
#else
|
||||
#include <md5.h>
|
||||
#endif
|
||||
|
||||
|
||||
typedef MD5_CTX ngx_md5_t;
|
||||
|
||||
|
||||
#if (NGX_OPENSSL_MD5)
|
||||
|
||||
#define ngx_md5_init MD5_Init
|
||||
#define ngx_md5_update MD5_Update
|
||||
#define ngx_md5_final MD5_Final
|
||||
|
||||
#else
|
||||
|
||||
#define ngx_md5_init MD5Init
|
||||
#define ngx_md5_update MD5Update
|
||||
#define ngx_md5_final MD5Final
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _NGX_MD5_H_INCLUDED_ */
|
Loading…
Reference in New Issue
Block a user