aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-06-24 16:12:11 +0200
committerKim Alvefur <zash@zash.se>2022-06-24 16:12:11 +0200
commit452f9e4e2b04982a5222312602f710e28e8f41fb (patch)
treef89f949661fc14fb675f15e5a17d2a81301d45d6
parent9a960217066e2659bf9473220c977c9246bcf6fa (diff)
downloadprosody-452f9e4e2b04982a5222312602f710e28e8f41fb.tar.gz
prosody-452f9e4e2b04982a5222312602f710e28e8f41fb.zip
util.hashes: Remove unused struct
Unused since 9f1c5ae8d70b
-rw-r--r--util-src/hashes.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/util-src/hashes.c b/util-src/hashes.c
index de802db0..b302d8eb 100644
--- a/util-src/hashes.c
+++ b/util-src/hashes.c
@@ -129,14 +129,6 @@ static int Lsha3_512(lua_State *L) {
return Levp_hash(L, EVP_sha3_512());
}
-struct hash_desc {
- int (*Init)(void *);
- int (*Update)(void *, const void *, size_t);
- int (*Final)(unsigned char *, void *);
- size_t digestLength;
- void *ctx, *ctxo;
-};
-
static int Levp_hmac(lua_State *L, const EVP_MD *evp) {
unsigned char hash[EVP_MAX_MD_SIZE], result[EVP_MAX_MD_SIZE * 2];
size_t key_len, msg_len;