From ccd358e1e25e25c13f0825996283cbf7a1647a3b Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Fri, 29 Oct 2021 02:48:19 +0000 Subject: [PATCH] upstream: avoid signedness warning; spotted in -portable OpenBSD-Regress-ID: 4cacc126086487c0ea7f3d86b42dec458cf0d0c6 --- regress/misc/sk-dummy/sk-dummy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/misc/sk-dummy/sk-dummy.c b/regress/misc/sk-dummy/sk-dummy.c index db4946acb..d2b3ed43e 100644 --- a/regress/misc/sk-dummy/sk-dummy.c +++ b/regress/misc/sk-dummy/sk-dummy.c @@ -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));