Skip to content
Snippets Groups Projects
Commit a42e7eea authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Added HMAC_CTX_cleanup to digest comp. function.

Refs #1543
parent ad1a1de4
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,8 @@ static int knot_tsig_compute_digest(const uint8_t *wire, size_t wire_len,
HMAC_Update(&ctx, (const unsigned char *)wire, wire_len);
HMAC_Final(&ctx, digest, &tmp_dig_len);
*digest_len = tmp_dig_len;
HMAC_CTX_cleanup(&ctx);
return KNOT_EOK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment