stroke: Make 96-bit truncation for SHA-256 configurable
This commit is contained in:
@@ -1074,7 +1074,8 @@ static child_cfg_t *build_child_cfg(private_stroke_config_t *this,
|
||||
.options = (msg->add_conn.proxy_mode ? OPT_PROXY_MODE : 0) |
|
||||
(msg->add_conn.ipcomp ? OPT_IPCOMP : 0) |
|
||||
(msg->add_conn.me.hostaccess ? OPT_HOSTACCESS : 0) |
|
||||
(msg->add_conn.install_policy ? 0 : OPT_NO_POLICIES),
|
||||
(msg->add_conn.install_policy ? 0 : OPT_NO_POLICIES) |
|
||||
(msg->add_conn.sha256_96 ? OPT_SHA256_96 : 0),
|
||||
.tfc = msg->add_conn.tfc,
|
||||
.inactivity = msg->add_conn.inactivity,
|
||||
.dpd_action = map_action(msg->add_conn.dpd.action),
|
||||
|
||||
@@ -216,6 +216,7 @@ static void stroke_add_conn(private_stroke_socket_t *this, stroke_msg_t *msg)
|
||||
DBG_OPT(" dpdtimeout=%d", msg->add_conn.dpd.timeout);
|
||||
DBG_OPT(" dpdaction=%d", msg->add_conn.dpd.action);
|
||||
DBG_OPT(" closeaction=%d", msg->add_conn.close_action);
|
||||
DBG_OPT(" sha256_96=%s", msg->add_conn.sha256_96 ? "yes" : "no");
|
||||
DBG_OPT(" mediation=%s", msg->add_conn.ikeme.mediation ? "yes" : "no");
|
||||
DBG_OPT(" mediated_by=%s", msg->add_conn.ikeme.mediated_by);
|
||||
DBG_OPT(" me_peerid=%s", msg->add_conn.ikeme.peerid);
|
||||
|
||||
Reference in New Issue
Block a user