/* 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;
/* 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));