From 9903b8a2f9a7dc8ebac6928dcf2d2b5593ea0615 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Fri, 12 May 2017 13:05:47 +0200 Subject: ipcpd: Allow specifying fixed syntax This commits adds the functions and messages to specify a fixed protocol syntax during CACEP. It also revises the messages for specifying the DT protocol syntax from the irm tool. --- src/irmd/ipcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/irmd/ipcp.c') diff --git a/src/irmd/ipcp.c b/src/irmd/ipcp.c index 182970b1..28e91b18 100644 --- a/src/irmd/ipcp.c +++ b/src/irmd/ipcp.c @@ -241,14 +241,14 @@ int ipcp_enroll(pid_t api, return ret; } - if (!recv_msg->has_dir_hash_algo || recv_msg->dif_name == NULL) { + if (recv_msg->dif_info == NULL) { ipcp_msg__free_unpacked(recv_msg, NULL); return -EIPCP; } - info->algo = recv_msg->dir_hash_algo; + info->dir_hash_algo = recv_msg->dif_info->dir_hash_algo; - strcpy(info->dif_name, recv_msg->dif_name); + strcpy(info->dif_name, recv_msg->dif_info->dif_name); ipcp_msg__free_unpacked(recv_msg, NULL); -- cgit v1.2.3