aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest/hooks/pretend_auth.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-12-06 13:37:57 +0100
committerMartin Willi <martin@revosec.ch>2012-03-20 17:31:13 +0100
commit9ad5b8fa951c294f3f79ffe701cac712a6cf18df (patch)
treeb3272a7598299219a6ecaf81cd735f1debe2760b /src/conftest/hooks/pretend_auth.c
parent0bcdb8e571d67d363a54ff2c2e3ecaf52bb93ebc (diff)
downloadstrongswan-9ad5b8fa951c294f3f79ffe701cac712a6cf18df.tar.bz2
strongswan-9ad5b8fa951c294f3f79ffe701cac712a6cf18df.tar.xz
Cleanup CERT payload constructors
Diffstat (limited to 'src/conftest/hooks/pretend_auth.c')
-rw-r--r--src/conftest/hooks/pretend_auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conftest/hooks/pretend_auth.c b/src/conftest/hooks/pretend_auth.c
index b8f961403..10b13c6ac 100644
--- a/src/conftest/hooks/pretend_auth.c
+++ b/src/conftest/hooks/pretend_auth.c
@@ -154,7 +154,7 @@ static void build_certs(private_pretend_auth_t *this,
cert = auth->get(auth, AUTH_RULE_SUBJECT_CERT);
if (cert)
{
- payload = cert_payload_create_from_cert(cert, CERTIFICATE);
+ payload = cert_payload_create_from_cert(CERTIFICATE, cert);
if (payload)
{
DBG1(DBG_IKE, "pretending end entity cert \"%Y\"",
@@ -167,7 +167,7 @@ static void build_certs(private_pretend_auth_t *this,
{
if (type == AUTH_RULE_IM_CERT)
{
- payload = cert_payload_create_from_cert(cert, CERTIFICATE);
+ payload = cert_payload_create_from_cert(CERTIFICATE, cert);
if (payload)
{
DBG1(DBG_IKE, "pretending issuer cert \"%Y\"",