aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-01-23 12:25:38 +0100
committerMartin Willi <martin@revosec.ch>2012-03-20 17:31:39 +0100
commit5aef6bd0f35ef690e2d2fb84155c77783bfd2bc7 (patch)
tree61772ae315a1ff8c24ae5cc720469b2d317f4f5b /src/conftest
parent6261c0c3b7a79ff3ac2492af878d8fb5d681b4dc (diff)
downloadstrongswan-5aef6bd0f35ef690e2d2fb84155c77783bfd2bc7.tar.bz2
strongswan-5aef6bd0f35ef690e2d2fb84155c77783bfd2bc7.tar.xz
Accept NULL auth_cfg_t passed to credential_manager_t.get_private()
Diffstat (limited to 'src/conftest')
-rw-r--r--src/conftest/hooks/rebuild_auth.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/conftest/hooks/rebuild_auth.c b/src/conftest/hooks/rebuild_auth.c
index 8ee4e14b1..eb95833e8 100644
--- a/src/conftest/hooks/rebuild_auth.c
+++ b/src/conftest/hooks/rebuild_auth.c
@@ -58,7 +58,6 @@ static bool rebuild_auth(private_rebuild_auth_t *this, ike_sa_t *ike_sa,
enumerator_t *enumerator;
chunk_t octets, auth_data;
private_key_t *private;
- auth_cfg_t *auth;
payload_t *payload;
auth_payload_t *auth_payload;
auth_method_t auth_method;
@@ -91,10 +90,8 @@ static bool rebuild_auth(private_rebuild_auth_t *this, ike_sa_t *ike_sa,
id = identification_create_from_encoding(data.ptr[4], chunk_skip(data, 8));
generator->destroy(generator);
- auth = auth_cfg_create();
private = lib->credmgr->get_private(lib->credmgr, KEY_ANY,
- this->id ?: id, auth);
- auth->destroy(auth);
+ this->id ?: id, NULL);
if (private == NULL)
{
DBG1(DBG_CFG, "no private key found for '%Y' to rebuild AUTH",