summaryrefslogtreecommitdiffstats
path: root/lasso/id-ff/session.c
Commit message (Collapse)AuthorAgeFilesLines
* xml/samlp2_logout_request: fix leaks around session indexesBenjamin Dauvergne2014-06-081-0/+1
|
* session: fix leak of _NidAndSessionIndex structuresBenjamin Dauvergne2014-06-081-0/+1
|
* id-ff/session.c: fix wrong variable reference in ↵Benjamin Dauvergne2013-12-081-1/+1
| | | | init_from_xml_nid_and_session_index
* Fix license boilerplatesSimo Sorce2013-12-031-2/+1
| | | | | | | Instad of referring to an old FSF address, point the reader to the FSF website where the latest licenses and addresses are published. Signed-off-by: Simo Sorce <simo@redhat.com>
* Rewrite all xmlNode serialization code to be compatible with libxml 2.9.0Benjamin Dauvergne2012-09-281-19/+4
| | | | | | | | | | Libxml stopped exposing the internal of the xmlOutputBuffer structure; it was replace by proper use of the API and of the xmlBuffer structure. There could be regression for older version of libxml as some functions appeared in recent version of libxml; but the reference API document does not give any introduction date for functions so it's hard to be sure.
* [core] add support for thin-sessions environment flag, to reduce size of ↵Benjamin Dauvergne2011-12-221-0/+3
| | | | LassoSession dumps
* [core] add simpler storage for SessionIndexes in the LassoSessionBenjamin Dauvergne2011-12-221-30/+387
|
* [core] add missing namespace definitions to internal objectsBenjamin Dauvergne2011-03-011-2/+6
| | | | | | | Identity, Lecp, Login, Logout, NameIdentifierMapping, NameRegistration, Session, AssertionQuery, Ecp and NameIdManagement objects were missing a namespace association to their GObject class. It broke when you try to dump a node created by lasso_node_new_from_dump.
* [wsf] fix wsf preprocessor conditionalsBenjamin Dauvergne2011-01-041-0/+1
|
* [Core] replace all use of g_strcmp0 by lasso_strisequal and lasso_strisnotequalBenjamin Dauvergne2010-10-011-1/+1
| | | | | Too much human errors with strcmp kind of functions. Also change name os lasso_is_empty_string to lasso_strisempty.
* [Core] add missing annotation to lasso_*_dump functionsBenjamin Dauvergne2010-09-271-1/+1
| | | | | The string returned by these functions is newly allocated and must be freed by the caller.
* in lasso_session_count_assertions, do not emit warning if session is not an ↵Benjamin Dauvergne2010-04-281-3/+3
| | | | object
* Improve safety by replacing all g_hash_table_destroy use by ↵Benjamin Dauvergne2010-04-221-12/+5
| | | | lasso_release_ghashtable
* Improve safety by replacing all g_list_free use by lasso_release_listBenjamin Dauvergne2010-04-221-12/+6
|
* Improve safety by replacing all g_free use by lasso_releaseBenjamin Dauvergne2010-04-221-4/+3
|
* Core: add missing return value owner semantic annotations to gettersBenjamin Dauvergne2010-02-171-5/+5
| | | | | | | * lasso/id-ff/provider.c: fix lasso_provider_get_base64_succinct_id, it returned a libxml string, copy it with g_strdup before releasing it to stay with GLib allocated string in return values.
* Core: use lasso_node_new_from_dump to implement _new_from_dump methodsBenjamin Dauvergne2010-02-041-19/+3
| | | | | | | | * provider.c: add annotation for nullable arguments (necessary for bindings of new_from_buffer). * server.c: add annotations, allow to set encryption_private_key from buffers
* Export more assertion access API for LassoSessionBenjamin Dauvergne2010-01-251-1/+1
| | | | | | | | | | * lasso/id-ff/session.c lasso/id-ff/session.h lasso/id-ff/sessionprivate.h: export lasso_session_get_assertion(), lasso_session_add_assertion() and lasso_session_remove_assertion(). remove them from private header. * docs/reference/lasso/lasso-sections.txt: update documentation
* FIX ABI breakage between 2.2.1 and 2.2.2 in LassoSamlAdviceBenjamin Dauvergne2010-01-151-3/+3
| | | | | | | | | | * lasso/xml/saml_advice.c lasso/xml/saml_advice.h: restore fields AssertionIDReference and Assertion, remove field any to restore state from 2.2.1 * lasso/id-ff/session.c: use xmlNode stored inside LassoSamlAssertion objects instead of accessing the 'any' list of xmlNode that was inserted in LassoSamlAdvice.
* Core: remove warning emiting macros from lasso_session_remove_assertionBenjamin Dauvergne2010-01-141-2/+3
| | | | | * lasso/id-ff/session.c: we already return error code, no need to log more warnings.
* Do not use g_new, use g_new0Benjamin Dauvergne2009-09-291-1/+1
| | | | | | | | | | | | | * lasso/id-ff/federation.c: * lasso/id-ff/logout.c: * lasso/id-ff/profile.c: * lasso/id-ff/provider.c: * lasso/id-ff/server.c: * lasso/id-ff/session.c: * lasso/id-wsf/authentication.c: * lasso/saml-2.0/ecp.c: * lasso/xml/xml.c: even for private datas, use g_new0, it is safer.
* Core: unseal LassoSession public fieldBenjamin Dauvergne2009-09-111-23/+23
| | | | | | | | | | | | * lasso/id-ff/session.c: * lasso/id-ff/session.h: * lasso/id-ff/sessionprivate.h: unseal session->is_dirty and session->assertions, remove the mirror version in the private data structure, and restore direct acces by methods. move the "private" comment before those two fields to hide them in the gtk-doc reference manual, normal access should be done by get_assertion and is_dirty methods.
* Core: remove a use of lasso_node_destroy in LassoSessionBenjamin Dauvergne2009-09-111-1/+1
|
* Docs: change the doc production and lot of other fixesBenjamin Dauvergne2009-08-261-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lasso/Makefile.am: distribute extract_sections.py * docs/references/lasso/lasso.types.in: add missing class (mainly SAML2 and ID-WSF 1.0/2.0) from docs/references/lasso.types.in * lasso/xml/strings.h: add lots of documentation, or at least documentation template to strings constants. * id-ff/login.h: * saml-2.0/assertion_query.h: * xml/xml.h: document undocumented enumerations. * lasso/errors.h: add proper documentation about error codes. * lasso/errors.c: new version of the lasso_strerror function * lasso/build_strerror.py: update the script that generater lasso_strerror from the documentation comments. Remove usage of OFTYPE * lasso/id-ff/session.c: * lasso/id-ff/session.h: remove usage of oftype, prefer gtk-introspection annotations instead. * lasso/id-wsf/data_service.h: * lasso/id-wsf/data_service.c: do the same. Add a script to build lasso-sections.txt * lasso/extract_sections.py: this script parses header files and generated lasso-sections.txt content for GObject class descriptions. Add a template file for the lasso-section.txt file * docs/references/lasso-sections.txt.in: this file serves as a base for the generation of lasso-sections.txt Update docs/references/Makefile.am for generating lasso-sections.txt * docs/references/Makefile.am: always rebuild template, using out of source build directory is too weird without it. call new script extract_sections.py to regenerate lasso-sections.txt if header files changed. Update lasso.sgml file with all missing sections * docs/reference/lasso.sgml: add all missing sections, mainly objects from XML schemas. * docs/reference/lasso-sections.txt: update it * *.c: add section documentation to some files. * lasso/xml/strings.h: fix bad usage or docbook markup
* All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF codeBenjamin Dauvergne2009-08-261-129/+11
| | | | | | | | | | | | | * nearly all C files: change includes for relative paths. * lasso/id-wsf/id_wsf.h, lasso/id-wsf-2.0/id_wsf_2.h: add top level public include files for ID-WSF 1.0 and ID-WSF 2.0. * lasso/id-ff/server.*, lasso/id-ff/session.*, lasso/id-ff/identity.*: remove most of the code related to ID-WSF and push into lasso/id-wsf/id_ff_extensions.* and lasso/id-wsf-2.0/identity.c, lasso/id-wsf-2.0/server.c, lasso/id-wsf-2.0/session.c. * lasso/id-wsf-2.0/saml2_login.c, lasso/id-wsf-2.0/saml2_login_private.h: same change but for ID-WSF 2.0 support in SAML2 SSO profile.
* ID-FF&Core: Seal public field of LassoSessionBenjamin Dauvergne2009-08-261-24/+53
| | | | | | | | | | | | | | | | | | * id-ff/session.h: seal public fields. * id-ff/session.c, id-ff/sessionprivate.h: add accessors for reading the is_dirty flag and counting store assertions. * id-ff/logout.c, id-ff/login.c, saml-2.0/login.c, saml-2.0/logout.c, saml-2.0/profile.c: use the new accessors. * id-ff/profile.c: include the private header file, use the new accessors, and remove unnecessary setting of is_dirty to FALSE (it should be false at instanciation). * utils.h: add a macro to access private content, prepare for using G_TYPE_INSTANCE_GET_PRIVATE and the GObject infrastructure for private structures eventually.
* ID-WSF 2.0: use new macrosBenjamin Dauvergne2009-08-261-1/+1
| | | | | | | | | | | | | | * lasso/id-wsf-2.0/data_service.c (lasso_idwsf2_data_service_init_query, lasso_idwsf2_data_service_parse_query_items, lasso_idwsf2_data_service_init_modify, lasso_idwsf2_data_service_parse_one_modify_item, lasso_idwsf2_data_service_parse_modify_items): add cast, change macros for stealing version, fix name of macro * lasso/id-wsf-2.0/profile.c: (lasso_idwsf2_profile_init_soap_request) use list handling macro, add missing casts * lasso/id-wsf-2.0/discovery.c: (lasso_idwsf2_discovery_process_metadata_association_add_msg, lasso_idwsf2_discovery_init_query) add missing casts
* Rework cleanup handlingBenjamin Dauvergne2009-04-221-6/+6
| | | | | | | | | | | | | | | | | | | | | | * lasso/utils.h: change 'goto exit' for 'goto cleanup'. rename all goto_exit macros to goto_cleanup_. rename goto_cleanup_if_fail to goto_cleanup_if_fail_with_rc and add a goto_cleanup_if_fail for function which do not return an integer value. add documentation for goto_cleanup macro family. * lasso/id-ff/login.c: * lasso/id-ff/provider.c: * lasso/id-ff/server.c: * lasso/id-ff/session.c: * lasso/id-wsf/discovery.c: * lasso/id-wsf/wsf_profile.c: * lasso/saml-2.0/profile.c: * lasso/utils.h: * lasso/xml/lib_logout_request.c: * lasso/xml/tools.c: * lasso/xml/xml.c: update name of goto_exit_if_fail macros. rename 'exit' labels to 'cleanup'.
* ID-FF 1.2: fix some real and potential memory leaksBenjamin Dauvergne2009-03-271-2/+2
| | | | | | | | | | | * lasso/id-ff/provider.c: * lasso/id-ff/server.c: * lasso/id-ff/session.c: use macros to release previous value when necessary, release object used as parameters to constructors, free the encryption key associated with a provider, release the key manager created for a saml signature verification.
* Core: do not mix public and private headersBenjamin Dauvergne2009-03-271-0/+1
| | | | | * lots of files: explicitely load the internal header xml/private.h where needed.
* All: Fix missing field initializer problemsBenjamin Dauvergne2009-01-241-0/+1
| | | | | | * lots of files: Explicitely set all field of initialized structures, in order to remove -Wno-missing-field-initilizers from needed compiler options when using -Wall -Wextra.
* Remove use of xmlFreeDoc for lasso_release_docBenjamin Dauvergne2008-11-041-2/+2
| | | | | | | | | | | | | | - 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.
* fixed various bugs with new compilation flagsDamien Laniel2008-09-161-7/+7
|
* * Remove ending blanksBenjamin Dauvergne2008-09-121-10/+10
|
* * Remove warnings:Benjamin Dauvergne2008-09-121-3/+3
| | | | | | | | | | - 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.
* * Fix blanks mismatch (space in *.c and *h files or tabs in *.py files) and ↵Benjamin Dauvergne2008-08-051-27/+27
| | | | formatting
* change g_assign_* to lasso_assgin_* and g_release_* to lasso_release_*Benjamin Dauvergne2008-08-051-2/+2
|
* do not use normal add_assertion method when reconstructing a session, no ↵Benjamin Dauvergne2008-08-011-22/+33
| | | | need to add Advice to assertion_by_id container
* copy node instead of stealing it to xmlDoc object, when parsing session dump ifBenjamin Dauvergne2008-08-011-18/+19
| | | | no children is present try to get a base64 encoded assertion.
* * lasso/id-ff/session.c: fix compilation errors.Benjamin Dauvergne2008-08-011-5/+6
|
* * lasso/id-ff/session.c: store ID-WSF assertion in base64 to fix problem ofBenjamin Dauvergne2008-08-011-3/+73
| | | | formatting of session dumps.
* * lasso/id-ff/login.c: comment the generation of Advice when ↵Benjamin Dauvergne2008-08-011-0/+19
| | | | | | | | | | | | ResourceOffering for the DiscoService support a security mechanism needing one. Anyway the generation of Credentials is broken. * lasso/id-ff/session.c: add treatment of saml:Advice on newly added Assertions, keep the transmitted assertions inside the session indexed by their AssertionID. * lasso/xml/saml_advice.{c,h}: change content to SNIPPET_LIST_XMLNODES.
* move session storage of assertion for SAML ID-WSF authentication of request ↵Benjamin Dauvergne2008-08-011-24/+57
| | | | to xmlNode instead of LassoNode; add error handling when no description has been found in comply_with_saml_authentication
* forked lasso branch for adelineBenjamin Dauvergne2008-08-011-10/+11
|
* Add an index of assertions by ID and two new functionBenjamin Dauvergne2008-08-011-8/+64
| | | | | | | | lasso_session_add_assertion_with_id(session, id, assertion) and lasso_session_get_assertion_by_id(session, id) Add to lasso_session_add_assertion a call to add_assertion_with_id, to index all assertions into the index by id.
* added some more missing unreferenceDamien Laniel2008-05-211-0/+1
|
* moved gtk-doc inline as is better on so many points; also added schemaFrederic Peters2008-05-151-0/+6
| | | | fragments to published doc
* fixed assertion refcounting in lasso_login_build_assertion, changedFrederic Peters2008-02-181-1/+2
| | | | lasso_session_add_assertion to refcount the assertion it gets
* adds all classes from ID-WSF 2 required schemas; with appropriate changes toFrederic Peters2007-07-101-1/+1
| | | | other files.
* get the identity token from the current eprDamien Laniel2007-06-111-3/+3
|