summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2021-10-29 02:48:20 +0000
committerDamien Miller <djm@cvs.openbsd.org>2021-10-29 02:48:20 +0000
commit510f9e87070be50f8d5fe41e66a8e9ab99101715 (patch)
treec2dec6aa210a96e45efd83a9a5f8f6987c4d3914 /regress/usr.bin
parent8ebb2d92b3750a83382f3a5513610f1b7c5844d3 (diff)
avoid signedness warning; spotted in -portable
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c4
1 files 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));