diff options
| author | Damien Laniel <dlaniel@entrouvert.com> | 2006-12-02 11:53:32 +0000 |
|---|---|---|
| committer | Damien Laniel <dlaniel@entrouvert.com> | 2006-12-02 11:53:32 +0000 |
| commit | 85ce95f4e55bfcd13adf4c31de3323e04628e484 (patch) | |
| tree | 97dc75a63d4843f2c8bb42411f48cb00031183a5 | |
| parent | e49890228517f4f1d58ac95e4d75fc9b034371ba (diff) | |
| download | lasso-85ce95f4e55bfcd13adf4c31de3323e04628e484.tar.gz lasso-85ce95f4e55bfcd13adf4c31de3323e04628e484.tar.xz lasso-85ce95f4e55bfcd13adf4c31de3323e04628e484.zip | |
Fixed a few warnings with -Wall
| -rw-r--r-- | lasso/xml/tools.c | 6 |
1 files 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 <xmlsec/templates.h> #include <xmlsec/xmldsig.h> #include <xmlsec/xmltree.h> +#include <xmlsec/errors.h> #include <zlib.h> #include <lasso/xml/xml.h> +#include <lasso/xml/xml_enc.h> #include <lasso/xml/saml-2.0/saml2_assertion.h> /** @@ -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); |
