#include <ykcore.h>
#include <ykcore_lcl.h>
*/
+#include <ykpers-args.h>
/* duplicated from ykpers.c */
struct ykp_config_t {
/* copy version number from st into cfg */
assert(ykp_configure_for(cfg, 1, st) == 1);
- /* call args_to_config from ykpersonalize.c with a fake set of program arguments */
- rc = args_to_config(argc, argv, cfg,
+ /* call args_to_config from ykpers-args.c with a fake set of program arguments */
+ rc = args_to_config(argc, argv, cfg, yk,
&infname, &outfname,
&autocommit, salt,
st, &verbose,
/* copy version number from st into cfg */
assert(ykp_configure_for(cfg, 1, st) == 1);
- /* call args_to_config from ykpersonalize.c with a fake set of program arguments */
- rc = args_to_config(argc, argv, cfg,
+ /* call args_to_config from ykpers-args.c with a fake set of program arguments */
+ rc = args_to_config(argc, argv, cfg, yk,
&infname, &outfname,
&autocommit, salt,
st, &verbose,
*
* Done in this way to be testable (see tests/test_args_to_config.c).
*/
-int args_to_config(int argc, char **argv, YKP_CONFIG *cfg,
+int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, YK_KEY *yk,
const char **infname, const char **outfname,
bool *autocommit, char *salt,
YK_STATUS *st, bool *verbose,
const char *usage;
-int args_to_config(int argc, char **argv, YKP_CONFIG *cfg,
+int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, YK_KEY *yk,
const char **infname, const char **outfname,
bool *autocommit, char *salt,
YK_STATUS *st, bool *verbose,
goto err;
/* Parse all arguments in a testable way */
- if (! args_to_config(argc, argv, cfg,
+ if (! args_to_config(argc, argv, cfg, yk,
&infname, &outfname,
&autocommit, salt,
st, &verbose,