27#ifndef MHD_SHA256_WRAP_H
28#define MHD_SHA256_WRAP_H 1
31#ifndef MHD_SHA256_SUPPORT
32#error This file must be used only when SHA-256 is enabled
34#ifndef MHD_SHA256_TLSLIB
40#ifndef SHA256_DIGEST_SIZE
45#define SHA256_DIGEST_SIZE (32)
48#ifndef SHA256_DIGEST_STRING_SIZE
52#define SHA256_DIGEST_STRING_SIZE ((SHA256_DIGEST_SIZE) * 2 + 1)
55#ifndef MHD_SHA256_TLSLIB
59#define Sha256CtxWr Sha256Ctx
64#define Sha256CtxWr Sha256CtxExt
67#ifndef MHD_SHA256_HAS_INIT_ONE_TIME
71#define MHD_SHA256_init_one_time(ctx) MHD_SHA256_init(ctx)
74#ifndef MHD_SHA256_HAS_FINISH_RESET
78#define MHD_SHA256_reset(ctx) MHD_SHA256_init(ctx)
82#define MHD_SHA256_finish_reset(ctx,digest) MHD_SHA256_finish(ctx,digest), \
86#define MHD_SHA256_reset(ctx) (void)0
89#ifndef MHD_SHA256_HAS_DEINIT
90#define MHD_SHA256_deinit(ignore) (void)0
95#if ! defined(MHD_SHA256_HAS_FINISH_RESET) && ! defined(MHD_SHA256_HAS_FINISH)
96#error Required MHD_SHA256_finish_reset() or MHD_SHA256_finish()
additional automatic macros for MHD_config.h
Calculation of SHA-256 digest.
Wrapper declarations for SHA-256 calculation performed by TLS library.