ha: Add DH group to CHILD_ADD message

References #1267.
This commit is contained in:
Tobias Brunner
2016-02-01 10:50:53 +01:00
parent f1e908837a
commit b5c2ed5016
2 changed files with 12 additions and 1 deletions
+4
View File
@@ -91,6 +91,10 @@ METHOD(listener_t, child_keys, bool,
{
m->add_attribute(m, HA_ALG_INTEG, alg);
}
if (proposal->get_algorithm(proposal, DIFFIE_HELLMAN_GROUP, &alg, NULL))
{
m->add_attribute(m, HA_ALG_DH, alg);
}
if (proposal->get_algorithm(proposal, EXTENDED_SEQUENCE_NUMBERS, &alg, NULL))
{
m->add_attribute(m, HA_ESN, alg);