From a0563846b0aebb692cb81647862807712d173e59 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 18 Nov 2011 10:56:48 +0100 Subject: Moved version specific keymat functions to specific interfaces. --- src/conftest/hooks/rebuild_auth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/conftest/hooks/rebuild_auth.c') diff --git a/src/conftest/hooks/rebuild_auth.c b/src/conftest/hooks/rebuild_auth.c index 993c952e0..cf9b113cc 100644 --- a/src/conftest/hooks/rebuild_auth.c +++ b/src/conftest/hooks/rebuild_auth.c @@ -15,6 +15,7 @@ #include "hook.h" +#include #include #include #include @@ -62,7 +63,7 @@ static bool rebuild_auth(private_rebuild_auth_t *this, ike_sa_t *ike_sa, auth_payload_t *auth_payload; auth_method_t auth_method; signature_scheme_t scheme; - keymat_t *keymat; + keymat_v2_t *keymat; identification_t *id; char reserved[3]; generator_t *generator; @@ -137,7 +138,7 @@ static bool rebuild_auth(private_rebuild_auth_t *this, ike_sa_t *ike_sa, id->destroy(id); return FALSE; } - keymat = ike_sa->get_keymat(ike_sa); + keymat = (keymat_v2_t*)ike_sa->get_keymat(ike_sa); octets = keymat->get_auth_octets(keymat, FALSE, this->ike_init, this->nonce, id, reserved); if (!private->sign(private, scheme, octets, &auth_data)) -- cgit v1.2.3