X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fdigest.h;h=7081f5ce3a9093bd7de917ccc7c6ac064f31722b;hb=3d787920d51a35e74e442c7265be3b13b69ad8e4;hp=351535327fc841c3d39c39072b9ecb8fa01ba1a7;hpb=2c6b2d70e6640f39563ad7bb0aa0ba87f883848c;p=tinc diff --git a/src/openssl/digest.h b/src/openssl/digest.h index 35153532..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,9 +23,15 @@ #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; size_t maclength; };