aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest/hooks/pretend_auth.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-11-18 10:56:48 +0100
committerTobias Brunner <tobias@strongswan.org>2012-03-20 17:30:45 +0100
commita0563846b0aebb692cb81647862807712d173e59 (patch)
tree0e0bce16be19f057ae2d65ad018672819b32c71e /src/conftest/hooks/pretend_auth.c
parenta09972df2bdffcef03add226be3f9bd8dc6e3962 (diff)
downloadstrongswan-a0563846b0aebb692cb81647862807712d173e59.tar.bz2
strongswan-a0563846b0aebb692cb81647862807712d173e59.tar.xz
Moved version specific keymat functions to specific interfaces.
Diffstat (limited to 'src/conftest/hooks/pretend_auth.c')
-rw-r--r--src/conftest/hooks/pretend_auth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conftest/hooks/pretend_auth.c b/src/conftest/hooks/pretend_auth.c
index ff99900f2..f91b6bf9b 100644
--- a/src/conftest/hooks/pretend_auth.c
+++ b/src/conftest/hooks/pretend_auth.c
@@ -15,6 +15,7 @@
#include "hook.h"
+#include <sa/keymat_v2.h>
#include <encoding/payloads/nonce_payload.h>
#include <encoding/payloads/cert_payload.h>
#include <encoding/payloads/auth_payload.h>
@@ -190,7 +191,7 @@ static bool build_auth(private_pretend_auth_t *this,
auth_payload_t *auth_payload;
auth_method_t auth_method;
signature_scheme_t scheme;
- keymat_t *keymat;
+ keymat_v2_t *keymat;
auth = auth_cfg_create();
private = lib->credmgr->get_private(lib->credmgr, KEY_ANY, this->id, auth);
@@ -235,7 +236,7 @@ static bool build_auth(private_pretend_auth_t *this,
key_type_names, private->get_type(private));
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, TRUE, this->ike_init,
this->nonce, this->id, this->reserved);
if (!private->sign(private, scheme, octets, &auth_data))