goto err;
}
- ykp_export_config(cfg, data, 1024, data_format);
if (outf) {
+ ykp_export_config(cfg, data, 1024, data_format);
if(!(fwrite(data, 1, strlen(data), outf))) {
goto err;
}
} else {
fprintf(stderr, "Configuration data to be updated in key configuration %d:\n\n", ykp_command(cfg) == SLOT_UPDATE1 ? 1 : 2);
}
+ ykp_export_config(cfg, data, 1024, YKP_FORMAT_LEGACY);
fwrite(data, 1, strlen(data), stderr);
}
fprintf(stderr, "\nCommit? (y/n) [n]: ");