buffalo-enc: pass the longstate option to decryption
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 20 Dec 2014 15:26:31 +0000 (15:26 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 20 Dec 2014 15:26:31 +0000 (15:26 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43756 3c298f89-4303-0410-b956-a3cf2f4a3e73

tools/firmware-utils/src/buffalo-enc.c

index 9eec7a0..59b66ab 100644 (file)
@@ -85,6 +85,7 @@ static int decrypt_file(void)
 
        memset(&ep, '\0', sizeof(ep));
        ep.key = (unsigned char *) crypt_key;
+       ep.longstate = longstate;
 
        err = decrypt_buf(&ep, buf, src_len);
        if (err) {