From cf18d69d1e8b238c82940b4ea8173436bd53a1ce Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 10 Aug 2017 15:33:36 +0200 Subject: lib, ipcpd, tools: Fix enum assignments This fixes several assignments to the wrong enum type. --- src/tools/irm/irm_ipcp_bootstrap.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/tools/irm') diff --git a/src/tools/irm/irm_ipcp_bootstrap.c b/src/tools/irm/irm_ipcp_bootstrap.c index 571bff8b..48a31f08 100644 --- a/src/tools/irm/irm_ipcp_bootstrap.c +++ b/src/tools/irm/irm_ipcp_bootstrap.c @@ -29,7 +29,6 @@ #endif #include #include -#include #include "irm_ops.h" #include "irm_utils.h" @@ -52,7 +51,7 @@ #define DEFAULT_DT_GAM COMPLETE #define DEFAULT_RM_GAM COMPLETE #define DEFAULT_ROUTING LINK_STATE -#define DEFAULT_HASH_ALGO HASH_SHA3_256 +#define DEFAULT_HASH_ALGO DIR_HASH_SHA3_256 #define ADDR_AUTH_FLAT "flat" #define DT_GAM_COMPLETE "complete" #define RM_GAM_COMPLETE "complete" @@ -122,13 +121,13 @@ int do_bootstrap_ipcp(int argc, char ** argv) name = *(argv + 1); } else if (matches(*argv, "hash") == 0) { if (strcmp(*(argv + 1), SHA3_224) == 0) - hash_algo = HASH_SHA3_224; + hash_algo = DIR_HASH_SHA3_224; else if (strcmp(*(argv + 1), SHA3_256) == 0) - hash_algo = HASH_SHA3_256; + hash_algo = DIR_HASH_SHA3_256; else if (strcmp(*(argv + 1), SHA3_384) == 0) - hash_algo = HASH_SHA3_384; + hash_algo = DIR_HASH_SHA3_384; else if (strcmp(*(argv + 1), SHA3_512) == 0) - hash_algo = HASH_SHA3_512; + hash_algo = DIR_HASH_SHA3_512; else goto unknown_param; } else if (matches(*argv, "ip") == 0) { -- cgit v1.2.3