Fix compatibility with LibreSSL and OpenSSL < 1.1.
[tinc] / src / openssl / digest.h
index 1b1389d..420b11e 100644 (file)
 */
 
 #include <openssl/evp.h>
+#include <openssl/hmac.h>
 
 struct digest {
        const EVP_MD *digest;
+       HMAC_CTX *hmac_ctx;
+       EVP_MD_CTX *md_ctx;
        int maclength;
-       int keylength;
-       char *key;
 };
 
 #endif