stroke: Make 96-bit truncation for SHA-256 configurable
This commit is contained in:
@@ -165,6 +165,7 @@ static const token_info_t token_info[] =
|
||||
{ ARG_TIME, offsetof(starter_conn_t, dpd_timeout), NULL },
|
||||
{ ARG_ENUM, offsetof(starter_conn_t, dpd_action), LST_dpd_action },
|
||||
{ ARG_ENUM, offsetof(starter_conn_t, close_action), LST_dpd_action },
|
||||
{ ARG_ENUM, offsetof(starter_conn_t, sha256_96), LST_bool },
|
||||
{ ARG_TIME, offsetof(starter_conn_t, inactivity), NULL },
|
||||
{ ARG_MISC, 0, NULL /* KW_MODECONFIG */ },
|
||||
{ ARG_MISC, 0, NULL /* KW_XAUTH */ },
|
||||
|
||||
@@ -162,6 +162,8 @@ struct starter_conn {
|
||||
|
||||
dpd_action_t close_action;
|
||||
|
||||
bool sha256_96;
|
||||
|
||||
time_t inactivity;
|
||||
|
||||
bool me_mediation;
|
||||
|
||||
@@ -64,6 +64,7 @@ enum kw_token_t {
|
||||
KW_DPDTIMEOUT,
|
||||
KW_DPDACTION,
|
||||
KW_CLOSEACTION,
|
||||
KW_SHA256_96,
|
||||
KW_INACTIVITY,
|
||||
KW_MODECONFIG,
|
||||
KW_XAUTH,
|
||||
|
||||
@@ -61,6 +61,7 @@ dpddelay, KW_DPDDELAY
|
||||
dpdtimeout, KW_DPDTIMEOUT
|
||||
dpdaction, KW_DPDACTION
|
||||
closeaction, KW_CLOSEACTION
|
||||
sha256_96, KW_SHA256_96
|
||||
inactivity, KW_INACTIVITY
|
||||
modeconfig, KW_MODECONFIG
|
||||
xauth, KW_XAUTH
|
||||
|
||||
@@ -220,6 +220,7 @@ int starter_stroke_add_conn(starter_config_t *cfg, starter_conn_t *conn)
|
||||
msg->add_conn.dpd.timeout = conn->dpd_timeout;
|
||||
msg->add_conn.dpd.action = conn->dpd_action;
|
||||
msg->add_conn.close_action = conn->close_action;
|
||||
msg->add_conn.sha256_96 = conn->sha256_96;
|
||||
msg->add_conn.inactivity = conn->inactivity;
|
||||
msg->add_conn.ikeme.mediation = conn->me_mediation;
|
||||
push_string(&msg, add_conn.ikeme.mediated_by, conn->me_mediated_by);
|
||||
|
||||
Reference in New Issue
Block a user