rc = args_to_config(argc, argv, cfg, yk,
&infname, &outfname,
&data_format,
- &autocommit, salt,
+ &autocommit, &salt,
st, &verbose, &dry_run,
access_code, &use_access_code,
&aesviahash, &ndef_type, ndef, &usb_mode, &zap,
rc = args_to_config(argc, argv, cfg, yk,
&infname, &outfname,
&data_format,
- &autocommit, salt,
+ &autocommit, &salt,
st, &verbose, &dry_run,
access_code, &use_access_code,
&aesviahash, &ndef_type, ndef, &usb_mode, &zap,
int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, YK_KEY *yk,
const char **infname, const char **outfname,
int *data_format,
- bool *autocommit, char *salt,
+ bool *autocommit, char **salt,
YK_STATUS *st, bool *verbose, bool *dry_run,
unsigned char *access_code, bool *use_access_code,
bool *aesviahash, char *ndef_type, char *ndef,
return 0;
}
if (strncmp(optarg, "salt=", 5) == 0)
- salt = strdup(optarg+5);
+ *salt = strdup(optarg+5);
else if (strncmp(optarg, "fixed=", 6) == 0) {
if (_set_fixed(optarg + 6, cfg) != 1) {
fprintf(stderr,
int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, YK_KEY *yk,
const char **infname, const char **outfname,
int *data_format,
- bool *autocommit, char *salt,
+ bool *autocommit, char **salt,
YK_STATUS *st, bool *verbose, bool *dry_run,
unsigned char *access_code, bool *use_access_code,
bool *aesviahash, char *ndef_type, char *ndef, unsigned char *usb_mode,
if (! args_to_config(argc, argv, cfg, yk,
&infname, &outfname,
&data_format,
- &autocommit, salt,
+ &autocommit, &salt,
st, &verbose, &dry_run,
access_code, &use_access_code,
&aesviahash, &ndef_type, ndef_string,