Enable and fix many extra warnings supported by GCC and Clang.
[tinc] / src / openssl / digest.h
index d553977..66d5416 100644 (file)
@@ -3,7 +3,7 @@
 
 /*
     digest.h -- header file digest.c
-    Copyright (C) 2013 Guus Sliepen <guus@tinc-vpn.org>
+    Copyright (C) 2013-2022 Guus Sliepen <guus@tinc-vpn.org>
 
     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
 */
 
 #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;
+       size_t maclength;
 };
 
 #endif