aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest/hooks/force_cookie.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-11-16 12:06:55 +0100
committerTobias Brunner <tobias@strongswan.org>2012-03-20 17:30:40 +0100
commit4ed52db2bbe4d884e5e0ed507b0d9c19f7b4343e (patch)
tree2d86367dfdabf70c2d0a42c9615c097f009b133e /src/conftest/hooks/force_cookie.c
parent8a2d079d785e069891dcae41e7b1aae51f50c9ae (diff)
downloadstrongswan-4ed52db2bbe4d884e5e0ed507b0d9c19f7b4343e.tar.bz2
strongswan-4ed52db2bbe4d884e5e0ed507b0d9c19f7b4343e.tar.xz
Allow creation of message_t objects for IKEv1 packets.
Diffstat (limited to 'src/conftest/hooks/force_cookie.c')
-rw-r--r--src/conftest/hooks/force_cookie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conftest/hooks/force_cookie.c b/src/conftest/hooks/force_cookie.c
index e34f82851..e2ccb66a8 100644
--- a/src/conftest/hooks/force_cookie.c
+++ b/src/conftest/hooks/force_cookie.c
@@ -68,7 +68,7 @@ METHOD(listener_t, message, bool,
chunk_t data = chunk_from_thing("COOKIE test data");
DBG1(DBG_CFG, "sending COOKIE: %#B", &data);
- response = message_create();
+ response = message_create(IKEV2_MAJOR_VERSION, IKEV2_MINOR_VERSION);
dst = message->get_source(message);
src = message->get_destination(message);
response->set_source(response, src->clone(src));