aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_hmac_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_hmac_private.h')
-rw-r--r--libarchive/archive_hmac_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libarchive/archive_hmac_private.h b/libarchive/archive_hmac_private.h
index eb45c4ef21bc..b7b365c7ad42 100644
--- a/libarchive/archive_hmac_private.h
+++ b/libarchive/archive_hmac_private.h
@@ -64,6 +64,11 @@ typedef struct {
} archive_hmac_sha1_ctx;
+#elif defined(HAVE_LIBMBEDCRYPTO) && defined(HAVE_MBEDTLS_MD_H)
+#include <mbedtls/md.h>
+
+typedef mbedtls_md_context_t archive_hmac_sha1_ctx;
+
#elif defined(HAVE_LIBNETTLE) && defined(HAVE_NETTLE_HMAC_H)
#include <nettle/hmac.h>