summaryrefslogtreecommitdiffstats
path: root/lasso
Commit message (Collapse)AuthorAgeFilesLines
* Fix refcounting error in SoapEnvelope classBenjamin Dauvergne2008-11-191-1/+2
| | | | | - lasso/xml/soap_envelope.c (lasso_soap_envelope_new): fix forgotten reference count increase when assigning the body.
* Add support to in memory private key to lasso_query_signBenjamin Dauvergne2008-11-101-1/+6
| | | | | - lasso/xml/tools.c: use BIO_new_mem_buf instead of BIO_new_file if private_key is not an existing file.
* Add missing intializationBenjamin Dauvergne2008-11-052-4/+4
| | | | | - lasso/id-ff/provider.c,lasso/id-ff/server.c: add missing initialization of return code variable.
* Fix missing includeBenjamin Dauvergne2008-11-051-0/+2
|
* Add log message in the metadata loading processBenjamin Dauvergne2008-11-052-3/+16
| | | | | - lasso/id-ff/provider.c, lasso/saml-2.0/provider.c: add critical log message in each failed loading of metadatas branch cases.
* Add new internal function to show safe extractsBenjamin Dauvergne2008-11-053-1/+91
| | | | | | | - lasso/utils.c, lasso/utils.h: New internal api lasso_safe_prefix_string that can show any string taking care of escaping newlines,tabs and non-graphical ou non-ASCII characters.
* Fix uninitialized return codeBenjamin Dauvergne2008-11-051-1/+1
| | | | Thanks Emmanuel Dreyfus
* Fix overwriting of attributes ht by node listsBenjamin Dauvergne2008-11-041-1/+1
| | | | | | | | | | - lasso/xml/xml.c: - In lasso_node_impl_init_from_xml fix really old bug seen when running ID-WSF 2 python tests, when looking for snippet_any field in the GObject we should not take the any attribute field, otherwise the field value is gonna be overwritten with new GList nodes. The problem ca be seen only with classes using the two kind of snippets (ANY nodes and ANY attributs).
* Change style of error and dellocation handlingBenjamin Dauvergne2008-11-043-93/+46
| | | | | | | | | | | | | | | | - lasso/id-ff/provider.c: - in lasso_provider_verify_signature use standardised memory and error handling macros, and also standard return code variable name and exit label. - in lasso_providerl_load_metadata_from_buffer and lasso_provider_load_metadata use the standardised macros, exit labels and return code variable. - lasso/id-ff/server.c: - in lasso_server_load_affiliation use standardised allocation and error handling macros. - lasso/id-wsf/wsf_profile.c: - use standardised memory and error handling macros in lasso_wsf_profile_build_soap_request_msg.
* Move xmlDoc release after xmlFreeXPath*Benjamin Dauvergne2008-11-041-1/+1
| | | | | | - lasso/xml/xml.c: - in lasso_node_new_from_soap release xmlDoc (and the contained nodes) after the XPath objects that can reference them.
* Remove use of xmlFreeDoc for lasso_release_docBenjamin Dauvergne2008-11-0418-42/+54
| | | | | | | | | | | | | | - bindings/java/wrapper_top.c, bindings/php4/lasso_php4_helper.c, bindings/php5/wrapper_source_top.c, bindings/python/wrapper_top.c, lasso/id-ff/identity.c, lasso/id-ff/lecp.c, lasso/id-ff/login.c, lasso/id-ff/logout.c, lasso/id-ff/name_registration.c, lasso/id-ff/profile.c, lasso/id-ff/provider.c, lasso/id-ff/server.c, lasso/id-ff/session.c, lasso/id-wsf-2.0/data_service.c, lasso/id-wsf/data_service.c, lasso/id-wsf/discovery.c, lasso/id-wsf/wsf_profile.c, lasso/saml-2.0/ecp.c, lasso/saml-2.0/login.c, lasso/saml-2.0/name_id_management.c, lasso/utils.h, lasso/xml/tools.c, lasso/xml/xml.c, swig/Lasso.i: Remove use of xmlFreeDoc. Use lasso_release_doc instead.
* Add new utils macrosBenjamin Dauvergne2008-11-041-0/+9
| | | | | | | - lasso/utils.h: - add goto_exit_with_rc a standardized macro that suppose having an 'int rc' variable and an exit label in the current function. - add lasso_release_output_buffer macro
* Fix lasso_assign_node: wrong xmlFreeNodeListBenjamin Dauvergne2008-11-041-1/+1
| | | | | | | * lasso/utils.h: - (lasso_assign_node) This macro wrongly assumes that the destroy function for xmlNode is xmlFreeNodeList but it's xmlFreeNode. xmlFreeNodeList is for xmlNode list of children.
* Restore ABI compatibility wrt original_xmlNodeBenjamin Dauvergne2008-11-032-10/+34
| | | | | | | | | | | * lasso/xml/xml.c: - use set/get_qdata to store the original xmlnode, modify init_from_xml and dispose function to cope with this new storage place. * lasso/xml/xml.h: - remove field original_xmlNode from structure LassoNode to keep ABI compatibility with previous versions. - declare new API lasso_node_get_original_xmlnode
* API to cleanup LassoNode tree of keeped xmlNodeBenjamin Dauvergne2008-11-032-0/+63
| | | | | | | | | * lasso/xml/xml.c: - add a new function lasso_node_cleanup_original_xmlnodes to disallocate all keeped xmlNode inside a tree of LassoNodes. - add internal function lasso_node_traversal to iterate across a LassoNode tree (could be used to reimplement lasso_node_destroy) It is a preorder traversal.
* Add support for keep_xmlnode flagBenjamin Dauvergne2008-11-031-0/+11
| | | | | | | | | * lasso/xml/xml.c: - (lasso_node_impl_init_from_xml) When the keep_xmlnode flag is true for the currently parsed Node class, we copy the parsed xmlNode and keep inside the LassoNode. - (lasso_node_dispose) if an original_xmlNode is present, we disallocate it.
* Add original_xmlNode pointer to LassoNodeBenjamin Dauvergne2008-11-031-0/+1
| | | | | | * lasso/xml/xml.h: add an xmlNode field to base class LassoNode, to permit retrieving the xmlNode originally parsed when the structure is the result of parsing. Will be used by signature checking code.
* Add keep_xmlnode field to LassoNodeClassDataBenjamin Dauvergne2008-11-031-0/+1
| | | | | * lasso/xml/private.h: add a boolean flag named keep_xmlnode to base class structure LassoNodeClassData.
* LassoServer init_from_xml/new_from_buffer handlingBenjamin Dauvergne2008-11-021-1/+3
| | | | | | * lasso/id-ff/server.c: (init_from_xml) if load_metadata fail try load_metadata_from_buffer instead using the content of the dumped nodes.
* Add new constructor lasso_server_new_from_buffersBenjamin Dauvergne2008-11-023-0/+43
| | | | | | | * lasso/id-ff/server.c, lasso/id-ff/server.h: add new function to build a LassoServer object holding content of certificate and private key files intead of loading them everytime signing is needed. You must instead load them yourself the first time.
* Export lasso_provider_load_metadata_from_bufferBenjamin Dauvergne2008-11-021-0/+1
| | | | | * lasso/id-ff/providerprivate.h: add declaration for private function lasso_provider_load_metadata_from_buffer
* Add verification of access before calling libxml loading functionBenjamin Dauvergne2008-11-021-1/+4
| | | | | | | | * lasso/id-ff/provider.c: (lasso_provider_load_metadata) libxml emit warning when trying to parse non-existing or non-accessible file, so verify that the file is accessible before calling libxml. (the corner case of having warning when the file become inaccessible between the two calls is non-interesting)
* First try accessing the file before calling key loading functionsBenjamin Dauvergne2008-11-021-9/+11
| | | | | | | * lasso/xml/tools.c: (lasso_sign_node) instead of waiting for the xmlsec key loading function to fail before trying to load the key directly from the private_key buffer, test it using POSIX function.
* Add possibility to sign using preloaded keysBenjamin Dauvergne2008-11-021-2/+17
| | | | | | * lasso/xml/tools.c: - (lasso_sign_node) if loading of the private_key or the certificate file we try to use the filename directly as a key in the PEM format.
* Add missing initializations.Benjamin Dauvergne2008-10-222-2/+2
|
* Add substitute code for g_strcmp0Benjamin Dauvergne2008-10-161-0/+16
|
* Integrate modification from Olav Morken <olavmo@stud.ntnu.no>Benjamin Dauvergne2008-10-131-2/+7
| | | | | It fixes bad url encoding of relaystates for logout profile. A better fix for all profiles is coming.
* add files to nodist_HEADERS to pass distcheckBenjamin Dauvergne2008-10-131-1/+2
|
* add functionality to enable debugging flags at runtimeBenjamin Dauvergne2008-10-017-12/+132
| | | | | | | | | | | | | | | | | | | | | | This code permit to set flags, separated by commas, space, tabulations, or colons. This flags activates debug functions like, suppressing validations of signatures or print debugging message about deallocations. The new flags are defined in /lasso/debug.h they can be set using an environment variable named LASSO_FLAG or a function named lasso_set_flag. There are two flags currently: - verify-signature: To deactivate it, pass 'no-verify-signature' inside LASSO_DEBUG. It desactivate signature verification, inside two functions: lasso_query_verify_signature and lasso_provider_verify_signature. - memory-debug: It enabled reporting of memory deallocation inside generic memory dellaocator for LassoNode objects and also in bindings. - lasso/xml/xml.c: do not free a null hash table pointer.
* cleaned up some codeDamien Laniel2008-10-011-17/+12
|
* fixed docstrings ; added an exported function ; reorganised functions in fileDamien Laniel2008-10-012-32/+47
|
* fixed segfaultsDamien Laniel2008-10-012-10/+19
|
* If ProviderID isn't found in an AuthnResponse, immediately return a critical ↵Damien Laniel2008-09-231-4/+3
| | | | error
* Many fix to compile with --enable-wsf and --enable-debugging and also toBenjamin Dauvergne2008-09-233-18/+23
| | | | | | | | | | | | | | | | | | remove valgrind errors through python tests. 1. Rename lasso_wsf_profile_new_full for java bindings (cannot subclass in overrides of static methods). 2. Add const modifiers to many functon signatures in bindings/python/wrapper_top.c. 3. add initialisation of private_data->encryption_sym_key_type (to please valgrind) in instance_init of LassoProvider. 4. Add new macro to assign xmlNode, we consider xmlNode to be an immutable value, and always use xmlCopyNode for assignment. The macros is called named lasso_assign_node. 5. Fix segfault, when using xmlSec to encrypt the newly created encrypted node replace the original node inside the xmlDoc structure, and the original node is freed automatically. So you cannot borrow the encrypted if you do not remove it from xmlDoc first.
* free xmlDoc only onceDamien Laniel2008-09-171-9/+10
|
* fixed docstringDamien Laniel2008-09-171-4/+4
|
* fixed docstrings which fucked php5 bindingDamien Laniel2008-09-173-9/+9
|
* fixed various bugs with new compilation flagsDamien Laniel2008-09-1612-60/+35
|
* * Remove ending blanksBenjamin Dauvergne2008-09-12718-4008/+4008
|
* * Remove warnings:Benjamin Dauvergne2008-09-1244-226/+108
| | | | | | | | | | - remove unused parameter from private function signatures - remove unused variable - initialize variable potentially accessed uninitialized - add G_GNUC_UNUSED if function is public or adhering to an interface, and a parameter is unused. - if ID-WSF is not compiled in, define stubs with G_GNUC_UNUSED on parameters. The goal is to compile with -Werror.
* * Add support of lasso_registry to lasso_node_new_from_xmlNode.Benjamin Dauvergne2008-09-121-55/+68
| | | | | | * Add full support for xsi:type, with lookup of the QName namespace, will only work if lib: namespace is correctly declared in the dumped XML fragment. * Add a test for the new functionnality in lasso_node_new_from_xmlNode.
* Add a new error code, with the REGISTRY prefix and use it in registry functionBenjamin Dauvergne2008-09-043-11/+21
| | | | | | returning an error code. Fix a typo when retrieving a quark string in the registry modulke. Improve tests for functional mapping.
* Fix regression when loading a LassoServer from dump.Benjamin Dauvergne2008-09-041-1/+1
| | | | | Fix an error with -rpath setting in last commit, -rpath must always be absolute paths.
* Add functional mappings and test code that goest with it.Benjamin Dauvergne2008-08-264-47/+200
|
* Add namespace for federation XML objectBenjamin Dauvergne2008-08-261-0/+1
|
* Add new module lasso_registry, to handle mapping from XML tag to GObjectBenjamin Dauvergne2008-08-264-3/+311
| | | | classes.
* Fix changed name of g_assign_string in wsf_profile.cBenjamin Dauvergne2008-08-261-1/+1
|
* Add public function lasso_server_add_provider_from_buffer, to add a providerBenjamin Dauvergne2008-08-264-32/+149
| | | | | | | | from an XML string of the metadatas (changed semantic of the second argument compared to lasso_server_add_provider). To support this a new public LassoProvider constructor was added: lasso_provider_new_from_buffer, where the second argument is an XML string. It uses a new private function, lasso_provider_load_metadata_from_buffer.
* Add documentation to lasso_server_add_service_from_dump.Benjamin Dauvergne2008-08-261-0/+12
|
* Complete documentation of lasso_server_add_service.Benjamin Dauvergne2008-08-261-2/+2
|