mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
39 lines
1015 B
Diff
39 lines
1015 B
Diff
|
--- a/tools/env/fw_env.c
|
||
|
+++ b/tools/env/fw_env.c
|
||
|
@@ -245,7 +245,7 @@ int fw_printenv (int argc, char *argv[])
|
||
|
int i, n_flag;
|
||
|
int rc = 0;
|
||
|
|
||
|
- if (argc >= 2 && strcmp(argv[1], "-a") == 0) {
|
||
|
+ if (0 && argc >= 2 && strcmp(argv[1], "-a") == 0) {
|
||
|
if (argc < 3) {
|
||
|
fprintf(stderr,
|
||
|
"## Error: '-a' option requires AES key\n");
|
||
|
@@ -324,7 +324,7 @@ int fw_printenv (int argc, char *argv[])
|
||
|
int fw_env_close(void)
|
||
|
{
|
||
|
int ret;
|
||
|
- if (aes_flag) {
|
||
|
+ if (0 && aes_flag) {
|
||
|
ret = env_aes_cbc_crypt(environment.data, 1);
|
||
|
if (ret) {
|
||
|
fprintf(stderr,
|
||
|
@@ -1222,7 +1222,7 @@ int fw_env_open(void)
|
||
|
|
||
|
crc0 = crc32 (0, (uint8_t *) environment.data, ENV_SIZE);
|
||
|
|
||
|
- if (aes_flag) {
|
||
|
+ if (0 && aes_flag) {
|
||
|
ret = env_aes_cbc_crypt(environment.data, 0);
|
||
|
if (ret)
|
||
|
return ret;
|
||
|
@@ -1279,7 +1279,7 @@ int fw_env_open(void)
|
||
|
|
||
|
crc1 = crc32 (0, (uint8_t *) redundant->data, ENV_SIZE);
|
||
|
|
||
|
- if (aes_flag) {
|
||
|
+ if (0 && aes_flag) {
|
||
|
ret = env_aes_cbc_crypt(redundant->data, 0);
|
||
|
if (ret)
|
||
|
return ret;
|