Minor type improvements in legacy protocol code
[tinc] / src / openssl / digest.h
index 66d5416..7081f5c 100644 (file)
 #include <openssl/evp.h>
 #include <openssl/hmac.h>
 
+#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;
 };