summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-07-12 15:18:15 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-07-12 16:12:50 +0200
commitd088c3395a28bce3e1530db5aeacbcf59ab16619 (patch)
treed1da4fcf7cc2875b077d767775359ad92dc10d7c /src/lib
parent3e9ee89b3ccf48dcabf7de2ecafcfbf637595cfe (diff)
downloadouroboros-d088c3395a28bce3e1530db5aeacbcf59ab16619.tar.gz
ouroboros-d088c3395a28bce3e1530db5aeacbcf59ab16619.zip
ipcpd, lib, irmd: Hardcode shim hash algorithms
This will hardcode the shim hash algorithms as they don't have an enrollment phase. Fixes #44
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/irm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c
index 9ee9e9e0..828bdfe6 100644
--- a/src/lib/irm.c
+++ b/src/lib/irm.c
@@ -108,7 +108,6 @@ int irm_bootstrap_ipcp(pid_t api,
msg.conf = &config;
dif_info.dif_name = (char *) conf->dif_info.dif_name;
- dif_info.dir_hash_algo = conf->dif_info.dir_hash_algo;
config.ipcp_type = conf->type;
@@ -128,6 +127,7 @@ int irm_bootstrap_ipcp(pid_t api,
config.rm_gam_type = conf->rm_gam_type;
config.has_routing_type = true;
config.routing_type = conf->routing_type;
+ dif_info.dir_hash_algo = conf->dif_info.dir_hash_algo;
break;
case IPCP_SHIM_UDP:
config.has_ip_addr = true;