diff options
author | Martin Willi <martin@revosec.ch> | 2010-10-28 14:40:54 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-10-28 15:08:14 +0200 |
commit | bb162175817aea3ac76c61c07fb1d1407ee02965 (patch) | |
tree | 0ecef3a7774d3a964b87c89b0a3144f1827430b7 /src/libcharon/plugins/ha | |
parent | d454c586ab5260a83c916782caa43ebad9988575 (diff) | |
download | strongswan-bb162175817aea3ac76c61c07fb1d1407ee02965.tar.bz2 strongswan-bb162175817aea3ac76c61c07fb1d1407ee02965.tar.xz |
Store proposal number in proposal_t to reuse it in the selected proposal
According to RFC 5996 3.3.1, we MUST reuse the proposal number of
the selected proposal in the SA payload reply.
Diffstat (limited to 'src/libcharon/plugins/ha')
-rw-r--r-- | src/libcharon/plugins/ha/ha_dispatcher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/plugins/ha/ha_dispatcher.c b/src/libcharon/plugins/ha/ha_dispatcher.c index 4f9496f90..b46a221bd 100644 --- a/src/libcharon/plugins/ha/ha_dispatcher.c +++ b/src/libcharon/plugins/ha/ha_dispatcher.c @@ -136,7 +136,7 @@ static void process_ike_add(private_ha_dispatcher_t *this, ha_message_t *message diffie_hellman_t dh = { .get_shared_secret = get_shared_secret, .destroy = (void*)&secret }; - proposal = proposal_create(PROTO_IKE); + proposal = proposal_create(PROTO_IKE, 0); keymat = ike_sa->get_keymat(ike_sa); if (integ) { @@ -549,7 +549,7 @@ static void process_child_add(private_ha_dispatcher_t *this, child_sa->set_protocol(child_sa, PROTO_ESP); child_sa->set_ipcomp(child_sa, ipcomp); - proposal = proposal_create(PROTO_ESP); + proposal = proposal_create(PROTO_ESP, 0); if (integ) { proposal->add_algorithm(proposal, INTEGRITY_ALGORITHM, integ, 0); |