diff options
author | dimitri staessens <[email protected]> | 2017-04-16 12:04:59 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2017-04-16 13:40:12 +0200 |
commit | 97ef24340da7d3f55a39ba16b400d13f9bbe9e60 (patch) | |
tree | e13656c267343db47a4f79d2098222909222736d /src/lib/irm.c | |
parent | c884fb9d6b3d3ea59f5fc7c5d709bfff4fcf1849 (diff) | |
download | ouroboros-97ef24340da7d3f55a39ba16b400d13f9bbe9e60.tar.gz ouroboros-97ef24340da7d3f55a39ba16b400d13f9bbe9e60.zip |
ipcpd: Allow specifying the hash algorithm to use
Currently CRC32, MD5, and SHA3 (224, 256, 384 and 512 bit) are supported.
Diffstat (limited to 'src/lib/irm.c')
-rw-r--r-- | src/lib/irm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c index a2fd5d0b..12d8e8f7 100644 --- a/src/lib/irm.c +++ b/src/lib/irm.c @@ -23,6 +23,7 @@ #include <ouroboros/config.h> #include <ouroboros/errno.h> +#include <ouroboros/hash.h> #include <ouroboros/irm.h> #include <ouroboros/utils.h> #include <ouroboros/sockets.h> @@ -105,7 +106,7 @@ int irm_bootstrap_ipcp(pid_t api, msg.conf = &config; config.dif_name = conf->dif_name; config.ipcp_type = conf->type; - config.dir_hash_len = (uint16_t) conf->dir_hash_len; + config.dir_hash_algo = (enum hash_algo) conf->dir_hash_algo; switch (conf->type) { case IPCP_NORMAL: |