static void
do_eet_insert(const char *file,
const char *key,
- const char *out,
+ const char *in,
int compress,
const char *crypto_key)
{
exit(-1);
}
- f = fopen(out, "rb");
+ f = fopen(in, "rb");
if (!f)
{
- ERR("cannot open %s", out);
+ ERR("cannot open %s", in);
exit(-1);
}
size = ftell(f);
if (size < 0)
{
- ERR("cannot obtain current file position %s", out);
+ ERR("cannot obtain current file position %s", in);
fclose(f);
exit(-1);
}
if (fread(data, size, 1, f) != 1)
{
- ERR("cannot read file %s", out);
+ ERR("cannot read file %s", in);
exit(-1);
}
static void
do_eet_encode(const char *file,
const char *key,
- const char *out,
+ const char *in,
int compress,
const char *crypto_key)
{
exit(-1);
}
- f = fopen(out, "rb");
+ f = fopen(in, "rb");
if (!f)
{
- ERR("cannot open %s", out);
+ ERR("cannot open %s", in);
exit(-1);
}
textlen = ftell(f);
if (textlen < 0)
{
- ERR("cannot obtain current file position %s", out);
+ ERR("cannot obtain current file position %s", in);
fclose(f);
exit(-1);
}
if (fread(text, textlen, 1, f) != 1)
{
- ERR("cannot read file %s", out);
+ ERR("cannot read file %s", in);
exit(-1);
}
fclose(f);
if (!eet_data_undump_cipher(ef, key, crypto_key, text, textlen, compress))
{
- ERR("cannot parse %s", out);
+ ERR("cannot parse %s", in);
exit(-1);
}