blob: f158fd4dc92ca53e66e4195d54c50259428687a0 [file] [log] [blame]
Igor Sysoev7b4d0262007-10-16 12:16:58 +00001
2/*
3 * Copyright (C) Igor Sysoev
4 */
5
6
7#ifndef _NGX_SHA1_H_INCLUDED_
8#define _NGX_SHA1_H_INCLUDED_
9
10
11#include <ngx_config.h>
12#include <ngx_core.h>
13
14
15#if (NGX_HAVE_OPENSSL_SHA1_H)
16#include <openssl/sha.h>
17#else
18#include <sha.h>
19#endif
20
21
22typedef SHA_CTX ngx_sha1_t;
23
24
Igor Sysoeve2610912007-10-22 15:22:08 +000025#define ngx_sha1_init SHA1_Init
26#define ngx_sha1_update SHA1_Update
27#define ngx_sha1_final SHA1_Final
Igor Sysoev7b4d0262007-10-16 12:16:58 +000028
29
30#endif /* _NGX_SHA1_H_INCLUDED_ */