/* public api for steve reid's public domain SHA-1 implementation */
/* this file is in the public domain */
#ifndef __SHA1_H
#define __SHA1_H
/* SHA1_DIGEST_SIZE must always be visible regardless of OpenSSL. */
#define SHA1_DIGEST_SIZE 20
/*
* When OpenSSL headers are already present, their SHA1_Init/Update/Final
* declarations take precedence. Redeclaring with incompatible signatures
* causes compile errors in consumers (e.g. nginx) that include both
* lscapi.h and OpenSSL. Use OpenSSL's SHA_CTX as an alias so internal
* callers that hold a SHA1_CTX* still work.
*
* Guard macros differ by OpenSSL version:
* OpenSSL 1.1.x -> HEADER_SHA_H
* OpenSSL 3.x -> OPENSSL_SHA_H
*/
#if !defined(OPENSSL_SHA_H) && !defined(HEADER_SHA_H)
#include