X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fdigest.h;h=7081f5ce3a9093bd7de917ccc7c6ac064f31722b;hb=9e7b3e5dd0d950790c1cc44be8e4716a7ed2e8f2;hp=420b11e04ba4edb7104f35eb75978eaeed4a5c50;hpb=7761a6992025ef06bf8dbf88d39a3bf9e459346a;p=tinc diff --git a/src/openssl/digest.h b/src/openssl/digest.h index 420b11e0..7081f5ce 100644 --- a/src/openssl/digest.h +++ b/src/openssl/digest.h @@ -3,7 +3,7 @@ /* digest.h -- header file digest.c - Copyright (C) 2013 Guus Sliepen + Copyright (C) 2013-2022 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,11 +23,17 @@ #include #include +#include "../legacy.h" + struct digest { const EVP_MD *digest; +#if OPENSSL_VERSION_MAJOR < 3 HMAC_CTX *hmac_ctx; +#else + EVP_MAC_CTX *hmac_ctx; +#endif EVP_MD_CTX *md_ctx; - int maclength; + size_t maclength; }; #endif