summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
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));