From 85ce95f4e55bfcd13adf4c31de3323e04628e484 Mon Sep 17 00:00:00 2001 From: Damien Laniel Date: Sat, 2 Dec 2006 11:53:32 +0000 Subject: Fixed a few warnings with -Wall --- lasso/xml/tools.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c index 5c3c8213..e3135a8d 100644 --- a/lasso/xml/tools.c +++ b/lasso/xml/tools.c @@ -36,10 +36,12 @@ #include #include #include +#include #include #include +#include #include /** @@ -413,7 +415,6 @@ lasso_assertion_encrypt(LassoSaml2Assertion *assertion) xmlSecByte *value; int length; int rc; - xmlSecKeyInfoCtxPtr ctx; xmlSecKey *encryption_public_key = NULL; int i; xmlSecKeyDataFormat key_formats[] = { @@ -451,7 +452,8 @@ lasso_assertion_encrypt(LassoSaml2Assertion *assertion) xmlSecErrorsDefaultCallbackEnableOutput(TRUE); /* Finally encrypt the assertion */ - encrypted_element = LASSO_NODE(lasso_node_encrypt(assertion, encryption_public_key)); + encrypted_element = LASSO_NODE(lasso_node_encrypt(LASSO_NODE(assertion), + encryption_public_key)); g_free(b64_value); g_free(value); -- cgit