X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fdigest.h;h=d6efacfa47a5f37da0163e450dd18fef42e53c91;hb=7be02138580c6821145405fd55def976dfde4998;hp=d553977b35b22f386e05a99fa51fe382f78542ad;hpb=ecfef0eeb9b52f6d75b4aa936a1e11e6d8e678e3;p=tinc diff --git a/src/openssl/digest.h b/src/openssl/digest.h index d553977b..d6efacfa 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 @@ -21,12 +21,17 @@ */ #include +#include 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