upstream: avoid signedness warning; spotted in -portable

OpenBSD-Regress-ID: 4cacc126086487c0ea7f3d86b42dec458cf0d0c6
This commit is contained in:
djm@openbsd.org 2021-10-29 02:48:19 +00:00 committed by Damien Miller
parent 2741f52beb
commit ccd358e1e2
1 changed files with 2 additions and 2 deletions

View File

@ -356,7 +356,7 @@ sig_ecdsa(const uint8_t *message, size_t message_len,
/* Prepare data to be signed */
dump("message", message, message_len);
SHA256Init(&ctx);
SHA256Update(&ctx, application, strlen(application));
SHA256Update(&ctx, (const u_char *)application, strlen(application));
SHA256Final(apphash, &ctx);
dump("apphash", apphash, sizeof(apphash));
countbuf[0] = (counter >> 24) & 0xff;
@ -435,7 +435,7 @@ sig_ed25519(const uint8_t *message, size_t message_len,
/* Prepare data to be signed */
dump("message", message, message_len);
SHA256Init(&ctx);
SHA256Update(&ctx, application, strlen(application));
SHA256Update(&ctx, (const u_char *)application, strlen(application));
SHA256Final(apphash, &ctx);
dump("apphash", apphash, sizeof(apphash));