From: djm Date: Fri, 29 Oct 2021 02:48:19 +0000 (+0000) Subject: avoid signedness warning; spotted in -portable X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=29ee8e43e8f55f62ba0f113c525b5058efab3119;p=openbsd avoid signedness warning; spotted in -portable --- diff --git a/regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c b/regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c index dc95ebea72f..0fe453b7f2d 100644 --- a/regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c +++ b/regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c @@ -336,7 +336,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; @@ -412,7 +412,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));