src/core/ngx_sha1.h - nginx-1.7.10

Data types defined

Macros defined

Source code


  1. /*
  2. * Copyright (C) Igor Sysoev
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_SHA1_H_INCLUDED_
  6. #define _NGX_SHA1_H_INCLUDED_


  7. #include <ngx_config.h>
  8. #include <ngx_core.h>


  9. #if (NGX_HAVE_OPENSSL_SHA1_H)
  10. #include <openssl/sha.h>
  11. #else
  12. #include <sha.h>
  13. #endif


  14. typedef SHA_CTX  ngx_sha1_t;


  15. #define ngx_sha1_init    SHA1_Init
  16. #define ngx_sha1_update  SHA1_Update
  17. #define ngx_sha1_final   SHA1_Final


  18. #endif /* _NGX_SHA1_H_INCLUDED_ */