From 49bd1736641a101dde23f2bbe994159ed33ef347 Mon Sep 17 00:00:00 2001 From: J08nY Date: Fri, 29 Sep 2017 17:48:58 +0200 Subject: Introduce check_t func. --- src/io/cli.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/io/cli.c') diff --git a/src/io/cli.c b/src/io/cli.c index 838c9bf..77f279f 100644 --- a/src/io/cli.c +++ b/src/io/cli.c @@ -234,7 +234,8 @@ error_t cli_parse(int key, char *arg, struct argp_state *state) { "--f2m (but not both)."); } // Invalid is not prime or seed by definition. - if (cfg->invalid && (cfg->prime || cfg->seed_algo || cfg->cofactor)) { + if (cfg->invalid && + (cfg->prime || cfg->seed_algo || cfg->cofactor)) { // not seed, not prime argp_failure(state, 1, 0, "Invalid curve generation can not generate curves " @@ -249,8 +250,8 @@ error_t cli_parse(int key, char *arg, struct argp_state *state) { "prime."); } if (cfg->anomalous && - (cfg->binary_field || cfg->cofactor || cfg->seed_algo || cfg->cm || - cfg->invalid || cfg->koblitz)) { + (cfg->binary_field || cfg->cofactor || cfg->seed_algo || + cfg->cm || cfg->invalid || cfg->koblitz)) { argp_failure( state, 1, 0, "Anomalous curve generation can not generate " -- cgit v1.2.3-70-g09d2