added config option for BEET mode

This commit is contained in:
Martin Willi
2007-01-03 13:16:21 +00:00
parent f73d4c9eb0
commit af87afed47
4 changed files with 18 additions and 2 deletions
+12 -1
View File
@@ -194,7 +194,18 @@ int starter_stroke_add_conn(starter_conn_t *conn)
msg.add_conn.name = push_string(&msg, connection_name(conn));
msg.add_conn.auth_method = (conn->policy & POLICY_PSK)?
SHARED_KEY_MESSAGE_INTEGRITY_CODE : RSA_DIGITAL_SIGNATURE;
msg.add_conn.mode = (conn->policy & POLICY_TUNNEL) ? 1 : 0;
if (conn->policy & POLICY_TUNNEL)
{
msg.add_conn.mode = 1; /* XFRM_MODE_TRANSPORT */
}
else if (conn->policy & POLICY_BEET)
{
msg.add_conn.mode = 4; /* XFRM_MODE_BEET */
}
else
{
msg.add_conn.mode = 0; /* XFRM_MODE_TUNNEL */
}
if (conn->policy & POLICY_DONT_REKEY)
{