2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Make the remaining instances of digest_type unsigned.

This commit is contained in:
Todd C. Miller
2023-07-06 08:01:15 -06:00
parent 43e914a5d3
commit bced0a7786
5 changed files with 11 additions and 11 deletions

View File

@@ -41,7 +41,7 @@ struct sudo_digest {
};
static const EVP_MD *
sudo_digest_type_to_md(int digest_type)
sudo_digest_type_to_md(unsigned int digest_type)
{
const EVP_MD *md = NULL;
debug_decl(sudo_digest_type_to_md, SUDO_DEBUG_UTIL);
@@ -67,7 +67,7 @@ sudo_digest_type_to_md(int digest_type)
}
struct sudo_digest *
sudo_digest_alloc_v1(int digest_type)
sudo_digest_alloc_v1(unsigned int digest_type)
{
struct sudo_digest *dig;
EVP_MD_CTX *mdctx = NULL;
@@ -119,7 +119,7 @@ sudo_digest_reset_v1(struct sudo_digest *dig)
}
int
sudo_digest_getlen_v1(int digest_type)
sudo_digest_getlen_v1(unsigned int digest_type)
{
const EVP_MD *md;
debug_decl(sudo_digest_getlen, SUDO_DEBUG_UTIL);