|
@@ -29,10 +29,11 @@ settings_t settings = {
|
|
|
""
|
|
""
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-int settings_crypt = PACK_ENC;
|
|
|
|
|
-
|
|
|
|
|
static void edpack(settings_t *, const char *, int);
|
|
static void edpack(settings_t *, const char *, int);
|
|
|
|
|
|
|
|
|
|
+#define PACK_ENC 1
|
|
|
|
|
+#define PACK_DEC 2
|
|
|
|
|
+
|
|
|
int checked_bin_buf = 0;
|
|
int checked_bin_buf = 0;
|
|
|
|
|
|
|
|
static char *
|
|
static char *
|
|
@@ -300,8 +301,6 @@ static void edpack(settings_t *incfg, const char *in_hash, int what)
|
|
|
unsigned char *(*enc_dec_string)(const char *, unsigned char *, size_t *);
|
|
unsigned char *(*enc_dec_string)(const char *, unsigned char *, size_t *);
|
|
|
size_t len = 0;
|
|
size_t len = 0;
|
|
|
|
|
|
|
|
- settings_crypt = what;
|
|
|
|
|
-
|
|
|
|
|
if (what == PACK_ENC)
|
|
if (what == PACK_ENC)
|
|
|
enc_dec_string = encrypt_binary;
|
|
enc_dec_string = encrypt_binary;
|
|
|
else
|
|
else
|