yubikey.h from yubico-c defines yubikey_hex_*() to have a char * as first
parameter, where we use unisgned char[] here. Add a cast to silence the
warning this generates.
memset(output_buf, 0, sizeof(output_buf));
if (hmac) {
- yubikey_hex_encode(output_buf, (char *)response, response_len);
+ yubikey_hex_encode((char *)output_buf, (char *)response, response_len);
} else {
- yubikey_modhex_encode(output_buf, (char *)response, response_len);
+ yubikey_modhex_encode((char *)output_buf, (char *)response, response_len);
}
printf("%s\n", output_buf);