aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/authenticators/psk_authenticator.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-07-05 11:54:25 +0200
committerMartin Willi <martin@revosec.ch>2010-07-13 10:26:07 +0200
commit2ccc02a4fd67d60baac8e632a71eefa86eb559fc (patch)
tree654c6e24dfdcad0a19cfd5c53cde9b5ea155fe27 /src/libcharon/sa/authenticators/psk_authenticator.c
parent2ca7db1337f22d754955e6b2c4eafa1bd330991a (diff)
downloadstrongswan-2ccc02a4fd67d60baac8e632a71eefa86eb559fc.tar.bz2
strongswan-2ccc02a4fd67d60baac8e632a71eefa86eb559fc.tar.xz
Moved credential manager to libstrongswan
Diffstat (limited to 'src/libcharon/sa/authenticators/psk_authenticator.c')
-rw-r--r--src/libcharon/sa/authenticators/psk_authenticator.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libcharon/sa/authenticators/psk_authenticator.c b/src/libcharon/sa/authenticators/psk_authenticator.c
index 67197d690..e69f30dcf 100644
--- a/src/libcharon/sa/authenticators/psk_authenticator.c
+++ b/src/libcharon/sa/authenticators/psk_authenticator.c
@@ -63,8 +63,7 @@ static status_t build(private_psk_authenticator_t *this, message_t *message)
other_id = this->ike_sa->get_other_id(this->ike_sa);
DBG1(DBG_IKE, "authentication of '%Y' (myself) with %N",
my_id, auth_method_names, AUTH_PSK);
- key = charon->credentials->get_shared(charon->credentials, SHARED_IKE,
- my_id, other_id);
+ key = lib->credmgr->get_shared(lib->credmgr, SHARED_IKE, my_id, other_id);
if (key == NULL)
{
DBG1(DBG_IKE, "no shared key found for '%Y' - '%Y'", my_id, other_id);
@@ -107,8 +106,8 @@ static status_t process(private_psk_authenticator_t *this, message_t *message)
recv_auth_data = auth_payload->get_data(auth_payload);
my_id = this->ike_sa->get_my_id(this->ike_sa);
other_id = this->ike_sa->get_other_id(this->ike_sa);
- enumerator = charon->credentials->create_shared_enumerator(
- charon->credentials, SHARED_IKE, my_id, other_id);
+ enumerator = lib->credmgr->create_shared_enumerator(lib->credmgr,
+ SHARED_IKE, my_id, other_id);
while (!authenticated && enumerator->enumerate(enumerator, &key, NULL, NULL))
{
keys_found++;