Also print an error message if decryption fails.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27167
3c298f89-4303-0410-b956-
a3cf2f4a3e73
ep.key = (unsigned char *) crypt_key;
err = decrypt_buf(&ep, buf, src_len);
- if (err)
+ if (err) {
+ ERR("unable to decrypt '%s'", ifname);
goto out;
+ }
printf("Magic\t\t: '%s'\n", ep.magic);
printf("Seed\t\t: 0x%02x\n", ep.seed);
uint32_t buffalo_csum(uint32_t csum, void *buf, unsigned long len)
{
- unsigned char *p = buf;
+ char *p = buf;
while (len--) {
int i;