aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ecgen.c1
-rw-r--r--src/misc/config.c7
-rw-r--r--src/misc/config.h2
3 files changed, 9 insertions, 1 deletions
diff --git a/src/ecgen.c b/src/ecgen.c
index 567e94d..acec047 100644
--- a/src/ecgen.c
+++ b/src/ecgen.c
@@ -42,7 +42,6 @@ const char *argp_program_bug_address = "<johny+ecgen@neuromancer.sk>";
static struct argp argp = {cli_options, cli_parse, cli_args_doc,
cli_doc, 0, cli_filter};
-static config_t cfg;
bool init(void) {
// init PARI, 1GB stack, 1M primes
diff --git a/src/misc/config.c b/src/misc/config.c
new file mode 100644
index 0000000..466ec92
--- /dev/null
+++ b/src/misc/config.c
@@ -0,0 +1,7 @@
+/*
+ * ecgen, tool for generating Elliptic curve domain parameters
+ * Copyright (C) 2017 J08nY
+ */
+#include "config.h"
+
+config_t cfg; \ No newline at end of file
diff --git a/src/misc/config.h b/src/misc/config.h
index 84ee025..f93cfc3 100644
--- a/src/misc/config.h
+++ b/src/misc/config.h
@@ -100,4 +100,6 @@ typedef struct {
unsigned long hex_digits;
} config_t;
+extern config_t cfg;
+
#endif // ECGEN_CONFIG_H