#include "core.h"
-DECLARE_VERBOSE_LEVEL (coretools, 0);
+DECLARE_VERBOSE_LEVEL (coretools, INFO);
int get_cpu_number (void)
{
/* depend: */
/* cflags: */
-/* linker: core.o morep.o parse.o pdu_channel.o pdu_encrypted_data.o pdu_prng_param.o pdu_status.o pdu_clear_data.o pdu_key.o pdu_raw_data.o task.o */
+/* linker: core.o function.o morep.o parse.o pdu_channel.o pdu_encrypted_data.o pdu_prng_param.o pdu_status.o pdu_clear_data.o pdu_key.o pdu_raw_data.o task.o */
#include <errno.h>
#include <signal.h>
#include "def.h"
#include "cryptomod.h"
+#include "function.h"
#include "morep.h"
#include "pdu_channel.h"
-#include "pdu_encrypted_data.h"
-#include "pdu_prng_param.h"
-#include "pdu_status.h"
#include "pdu_clear_data.h"
+#include "pdu_encrypted_data.h"
#include "pdu_key.h"
+#include "pdu_prng_param.h"
#include "pdu_raw_data.h"
-#include "pdu_raw_data.h"
+#include "pdu_status.h"
#include "task.h"
#include "verbose.h"
char *progname = NULL;
-int state = shutdowning_e;
-
DECLARE_VERBOSE_LEVEL (morep, INFO);
DECLARE_VERBOSE_LEVEL (crypto, INFO);
#define BUFMAX 4096
+extern state_t state;
+
#define NBSERVICES 10
char *services[NBSERVICES] = {
"CROSS_CRYPTO_R2B",
rc = random_func (&pdu_prng_param, &pdu_raw_data);
break;
case status_func_e:
- rc = random_func (NULL, &pdu_status);
+ rc = status_func (NULL, &pdu_status);
break;
case authentification_func_e:
rc = authentification_func (&pdu_raw_data, &pdu_raw_data);
#include "morep.h"
#include "parse.h"
#include "pdu_channel.h"
-#include "pdu_encrypted_data.h"
-#include "pdu_prng_param.h"
-#include "pdu_status.h"
#include "pdu_clear_data.h"
+#include "pdu_encrypted_data.h"
#include "pdu_key.h"
+#include "pdu_prng_param.h"
#include "pdu_raw_data.h"
-#include "pdu_raw_data.h"
+#include "pdu_status.h"
#include "simulator.h"
#include "verbose.h"
fflush (stream); \
} while (0)
-__END_DECLS
-
/**
Get error and waring call number.
@param module module name
- @return level verbose level
+ @return verbose errors
*/
-#define GET_VERBOSE_LEVEL(module) verbose_errors_##module
+#define GET_VERBOSE_ERRORS(module) verbose_errors_##module
+
+/**
+ Get verbose level.
+
+ @param module module name
+ @return verbose level
+*/
+#define GET_VERBOSE_LEVEL(module) verbose_##module
+
+__END_DECLS
#endif /* __VERBOSE_H__ */