X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsrc%2Fhash.h;h=588325baf29c2e7f960072a411cd485ba95f0945;hb=6b331d5834d12bdda21857cd6fffac17038ce3c7;hp=b745e6218f86b2c81d7d738a2cbf26cce3684a67;hpb=d73e45df63ef6602fa32bd3e196d20735a0b69b5;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/hash.h b/src/src/hash.h index b745e6218..588325baf 100644 --- a/src/src/hash.h +++ b/src/src/hash.h @@ -1,7 +1,6 @@ /* * Exim - an Internet mail transport agent - * - * Copyright (C) 2016 Exim maintainers + * Copyright (c) The Exim Maintainers 1995 - 2022 * * Hash interface functions */ @@ -12,7 +11,6 @@ #define HASH_H #include "sha_ver.h" -#include "blob.h" #ifdef SHA_OPENSSL # include @@ -31,6 +29,7 @@ typedef enum hashmethod { HASH_BADTYPE, + HASH_NULL, HASH_SHA1, HASH_SHA2_256, @@ -52,6 +51,9 @@ typedef struct { SHA_CTX sha1; /* SHA1 block */ SHA256_CTX sha2_256; /* SHA256 or 224 block */ SHA512_CTX sha2_512; /* SHA512 or 384 block */ +#ifdef EXIM_HAVE_SHA3 + EVP_MD_CTX * mctx; /* SHA3 block */ +#endif } u; #elif defined(SHA_GNUTLS) @@ -74,6 +76,7 @@ typedef struct { extern BOOL exim_sha_init(hctx *, hashmethod); extern void exim_sha_update(hctx *, const uschar *a, int); +extern void exim_sha_update_string(hctx *, const uschar *a); extern void exim_sha_finish(hctx *, blob *); #endif