From 29ee8e43e8f55f62ba0f113c525b5058efab3119 Mon Sep 17 00:00:00 2001 From: djm Date: Fri, 29 Oct 2021 02:48:19 +0000 Subject: [PATCH] avoid signedness warning; spotted in -portable --- regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.20.1