blob: 81c909e2f3d5b5ac9fedaf327d6a93ce7f56c385 [file] [log] [blame]
Igor Sysoev7b4d0262007-10-16 12:16:58 +00001
2/*
3 * Copyright (C) Igor Sysoev
Maxim Konovalovf8d59e32012-01-18 15:07:43 +00004 * Copyright (C) Nginx, Inc.
Igor Sysoev7b4d0262007-10-16 12:16:58 +00005 */
6
7
8#ifndef _NGX_SHA1_H_INCLUDED_
9#define _NGX_SHA1_H_INCLUDED_
10
11
12#include <ngx_config.h>
13#include <ngx_core.h>
14
15
16#if (NGX_HAVE_OPENSSL_SHA1_H)
17#include <openssl/sha.h>
18#else
19#include <sha.h>
20#endif
21
22
23typedef SHA_CTX ngx_sha1_t;
24
25
Igor Sysoeve2610912007-10-22 15:22:08 +000026#define ngx_sha1_init SHA1_Init
27#define ngx_sha1_update SHA1_Update
28#define ngx_sha1_final SHA1_Final
Igor Sysoev7b4d0262007-10-16 12:16:58 +000029
30
31#endif /* _NGX_SHA1_H_INCLUDED_ */