From 772df95f39a27a6e87eaffd42f77dcf1ba4bcf93 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Sat, 20 Apr 2013 14:02:19 +0200 Subject: [PATCH] algo_suite: definition moved to a better place --- src/algo_suite.h | 5 ++++- src/algorithm.h | 6 +----- src/main.cpp | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/algo_suite.h b/src/algo_suite.h index 7eb006b..2ec2eab 100644 --- a/src/algo_suite.h +++ b/src/algo_suite.h @@ -19,7 +19,10 @@ #ifndef _ccr_algo_suite_h_ #define _ccr_algo_suite_h_ -#include "algorithm.h" +#include +#include +class algorithm; +typedef std::map algorithm_suite; void fill_algorithm_suite (algorithm_suite&); diff --git a/src/algorithm.h b/src/algorithm.h index 2ba5378..55374fa 100644 --- a/src/algorithm.h +++ b/src/algorithm.h @@ -19,15 +19,11 @@ #ifndef _ccr_algorithm_h_ #define _ccr_algorithm_h_ +#include "algo_suite.h" #include "bvector.h" #include "prng.h" #include "sencode.h" -#include -#include -class algorithm; -typedef std::map algorithm_suite; - /* * virtual interface definition for all cryptographic algorithm instances. * diff --git a/src/main.cpp b/src/main.cpp index 4588078..57163c9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -99,11 +99,12 @@ void test() #include -#include "keyring.h" +#include "actions.h" #include "algo_suite.h" int main (int argc, char**argv) { + //option variables bool do_help = false, do_version = false, do_test = false, @@ -122,7 +123,6 @@ int main (int argc, char**argv) char action = 0; - //process options int c, option_index; for (;;) { static struct option long_opts[] = {