summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* new function lasso_profile_get_server()Benjamin Dauvergne2009-04-273-0/+28
| | | | | | | | | | * lasso/id-ff/profile.c: * lasso/id-ff/profile.h: in a move to try to remove direct access to object content, add a function to retrieve the LassoServer object of a LassoProfile. * bindings/overrides.xml: it conflicts with direct access to the public field server, so we do not export it in the binding for now.
* fix: in lasso_verify_signature() only look for the first direct child ↵Benjamin Dauvergne2009-04-271-2/+2
| | | | | | | | Signature element * lasso/xml/tools.c: in SAML message signatures are usually envelopped signatures, so just lookup for the first direct child which is a Signature node.
* fix: handle non-LHS argument for lasso_extract_node_or_fail()Benjamin Dauvergne2009-04-271-5/+8
| | | | | | * lasso/utils.h: create a temporary varaible to store result of second argument evaluation to prevent spurious side effects.
* lasso_saml20_profile_init_artifact_resolve(): check http_methodBenjamin Dauvergne2009-04-271-1/+3
| | | | | | | * lasso/saml-2.0/profile.c: check the given http_method it must one in - LASSO_HTTP_METHOD_ARTIFACT_POST, - LASSO_HTTP_METHOD_ARTIFACT_GET.
* lasso_login_init_request(): change error code for invalid artifactsBenjamin Dauvergne2009-04-271-2/+2
| | | | | | * lasso/id-ff/login.c: if artifact is invalid return LASSO_PROFILE_ERROR_INVALID_ARTIFACT as in lasso_saml20_profile_init_artifact_resolve().
* Complete documentation of lasso_login_init_requestBenjamin Dauvergne2009-04-271-2/+18
| | | | | * lasso/id-ff/login.c: add precision on usage. add all possible return codes with meanings.
* lasso_login_init_authn_request: complete docBenjamin Dauvergne2009-04-271-1/+10
| | | | | * lasso/id-ff/login.c: add all possible return codes and their meaning.
* lasso_login_init_authn_request: change error code for missing remote provider IDBenjamin Dauvergne2009-04-271-1/+1
| | | | | | | | * lasso/id-ff/login.c: change the return code for when no remote provider ID could be defined (because the argument is NULL and the server object contains no providers) so that we can distingish the case where the given provider is unknown or if there is no providers configured.
* Add a deprecated tag to lasso_login_destroy docBenjamin Dauvergne2009-04-271-0/+2
| | | | | | * lasso/id-ff/login.c: all destroy functions are deprecated, g_object_unref() should be used instead.
* Complete documentation of lasso_login_byuld_response_msgBenjamin Dauvergne2009-04-271-0/+5
| | | | | * lasso/id-ff/login.c: add all possible return codes with meaning.
* Complete documentation of lasso_login_build_request_msgBenjamin Dauvergne2009-04-271-3/+11
| | | | | * lasso/id-ff/login.c: add all possible return codes with meaning.
* Complet documentation for lasso_login_build_authn_response_msgBenjamin Dauvergne2009-04-271-1/+9
| | | | | * lasso/id-ff/login.c: add all possible return codes with meaning.
* Complete documentation of lasso_login_build_authn_requestBenjamin Dauvergne2009-04-271-6/+18
| | | | | * lasso/id-ff/login.c: add all possible return codes with meaning.
* Complete documentation for lasso_login_build_artifact_msgBenjamin Dauvergne2009-04-271-1/+11
| | | | | * lasso/id-ff/login.c: add all possible return codes with meaning.
* Complet documentation of lasso_login_accept_ssoBenjamin Dauvergne2009-04-271-1/+9
| | | | | * lasso/id-ff/login.c: add all possible return codes.
* Complete doc for static function lasso_login_musk_ask_for_consentBenjamin Dauvergne2009-04-271-1/+1
| | | | | * lasso/id-ff/login.c: precise return value meaning.
* Complete document of lasso_login_build_assertionBenjamin Dauvergne2009-04-271-1/+5
| | | | | * lasso/id-ff/login.c: add possible return codes.
* Complete doc of lasso_logout_validate_requestBenjamin Dauvergne2009-04-271-1/+15
| | | | | * lasso/id-ff/logout.c: add description of all possible return codes.
* Rework cleanup handlingBenjamin Dauvergne2009-04-2210-116/+162
| | | | | | | | | | | | | | | | | | | | | | * 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'.
* XML: Fix prefix clobbering by xsi:type handlingBenjamin Dauvergne2009-04-221-4/+7
| | | | | | | * lasso/xml/xml.c: if xsi:type is not able to find a GObject typename for the current node, then do not erase the actual prefix value. change prefix type to const char.
* SAML 2.0: Use new API lasso_url_add_parameterBenjamin Dauvergne2009-04-222-20/+17
| | | | | | * lasso/saml-2.0/profile.c: use new API lasso_url_add_parameter to handle RelayState parameter creation.
* SAML 2.0: Check http_method in build_artifact_msgBenjamin Dauvergne2009-04-221-0/+4
| | | | | | * lasso/saml-2.0/login.c: if http_method is not among ARTIFACT_GET and ARTIFACT_POST, return an INVALID_HTTP_METHOD error.
* Tests: Add test parsing a Ping Federate assertion.Benjamin Dauvergne2009-04-221-0/+19
| | | | | * tests/basic_tests.c: load data/response-1 and try to parse it.
* Add a new internal API for parameters buildingBenjamin Dauvergne2009-04-222-0/+65
| | | | | | | | * xml/tools.c: add lasso_url_add_parameter that concat the string &key=value to an existing URL where key and value are url-encoded. * xml/private.h: declare lasso_url_add_parameter.
* Tests: Add a SAML2 login testBenjamin Dauvergne2009-04-223-1/+467
| | | | | | | * tests/login_tests_saml2.c: add a C login test for SAML 2. * tests/Makefile.am: add the new test to dependencies.
* If no typename could be determined, stop parsing.Benjamin Dauvergne2009-04-211-2/+3
| | | | | | * lasso/xml/xml.c: in lasso_node_new_from_xmlNode if no typename is found for the given xmlNode, return NULL.
* Fix python 2.4 binding buildJerome Schneider2009-04-171-0/+6
|
* Core: Add cast to first argument of isalnumBenjamin Dauvergne2009-04-142-2/+2
| | | | | | * lasso/xml/xml.c: * lasso/xml/tools.c: isalnum takes a int as first arg.
* Core: add an header file for backward compatibilityBenjamin Dauvergne2009-04-144-22/+50
| | | | | | | | | | | * lasso/backward_comp.h: this header will contain substitue function, defines or types for compatibility with older versions of dependencies. * lasso/utils.h: remove declaration of g_strcmp0 * lasso.c: * tests/login_tests.c: use backward_comp.h
* Fix build issues on amd64 / gcc 4.3Jerome Schneider2009-04-093-4/+4
| | | | | | | | | * bindings/java/lang.py: fix cast issue * bindings/python/wrapper_top.c fix type issue * lasso/registry.c fix cast issue
* Tests&Core: add g_strcmp0 if glib is oldBenjamin Dauvergne2009-04-022-0/+8
| | | | | | | | * lasso/utils.h: if glib is older than 2.16, export g_strcmp0 as part of internal headers, in order to use it in login_tests.c * tests/login_tests.c: include utils.h
* Update website download pageBenjamin Dauvergne2009-03-272-3/+19
| | | | | | | * website/web/download/index.xml: update link for last release download * website/web/news/13-release-2.2.2.xml: add news about release 2.2.2
* Update lasso version to 2.2.2Benjamin Dauvergne2009-03-273-5/+17
| | | | | | | | * configure.ac: * fedora/lasso.spec: * lasso.doap: update lasso version to 2.2.2, this commit will be the reference for the 2.2.2 release.
* Makefile: change dependencies to pass distcheckBenjamin Dauvergne2009-03-271-2/+2
| | | | | | | * lasso/Makefile.am: source dependencies must refer to $(srcdir) in order to pass distcheck, I forgot to do it in types.c and symbols.sym target changes.
* ID-FF 1.2: if logout request parsing fails, take a shortcutBenjamin Dauvergne2009-03-271-1/+3
| | | | | | * lasso/xml/lib_logout_request.c: immediately return from init_from_query if overloaded parent method fails.
* SAML 2.0: Update generic relaystate handlingBenjamin Dauvergne2009-03-271-27/+10
| | | | | | | * lasso/saml-2.0/profile.c: in lasso_saml20_profile_build_redirect_request_msg and lasso_saml20_profile_build_redirect_response, use new function lasso_saml20_profile_build_http_redirect.
* Core: add a add-signature flagBenjamin Dauvergne2009-03-272-0/+7
| | | | | | | | * lasso/debug.h: * lasso/lasso.c: add a lasso_flag_add_signature flag variable (default to TRUE), and parsing code to change it from LASSO_FLAG environment variable. ("env LASSO_FLAG=no-add-signature test").
* ID-FF 1.2: Only verify InResponseTo if strict checking is onBenjamin Dauvergne2009-03-271-0/+21
| | | | | | | * lasso/id-ff/login.c: add condition upon checking of the InResponseTo field: checks only if strict checking is activated as it could stop old code using Lasso from working.
* Core: Add a flag for enabling more strict checkingBenjamin Dauvergne2009-03-272-0/+7
| | | | | | | | * lasso/debug.h: declare lasso_flag_strict_checking global boolean variable. * lasso/lasso.c: add parsing for new option called 'strict-checking'.
* XML: use macro for assignmentBenjamin Dauvergne2009-03-271-1/+1
| | | | | | * lasso/xml/xml.c: use standardized assignment macros (it takes care of releasing previous valuesm and other peculiarities associated with safe pointer usage).
* ID-FF 1.2: Add trace in dispose for LassoProfileBenjamin Dauvergne2009-03-271-0/+5
| | | | | | | * lasso/id-ff/profile.c: add tracing code activaged by LASSO_FLAG=memory-debug to print release of field values. Complement the existing code in generic deallocation procedure in LassoNode.
* Core: debug.h need export.hBenjamin Dauvergne2009-03-271-0/+1
| | | | | * lasso/debug.h: export.h is needed for the LASSO_EXPORT macro.
* Core: Macros to print deallocation messagesBenjamin Dauvergne2009-03-271-0/+7
| | | | | | * lasso/utils.h: lasso_mem_debug print deallocation message with respect to class and field.
* Core: remove type check equality on gobject macrosBenjamin Dauvergne2009-03-271-2/+0
| | | | | | * lasso/utils.h: assignment to the temporary variable allow to check for the typing, do not use lasso_check_type_equality.
* Core: add macros to handle xmlSecKeyBenjamin Dauvergne2009-03-271-0/+20
| | | | | * lasso/utils.h: macros to assign and release xmlSecKey(s).
* XML: fix memory leaksBenjamin Dauvergne2009-03-272-8/+7
| | | | | | * lasso/xml/tools.c: * lasso/xml/xml.c: release xmlDoc, properly steal nodes by using xmlSetTreeDoc(xmlnode, NULL);
* ID-FF 1.2: fix style faultBenjamin Dauvergne2009-03-274-20/+21
| | | | | | | | | | | | * lasso/id-ff/defederation.c: * lasso/id-ff/logout.c: * lasso/id-ff/profile.c: * lasso/id-ff/provider.c: * lasso/id-ff/server.c: add missings casts, remove useless wrappers * lasso/id-ff/logout.c: In lasso_logout_process_request_msg change sequence of "if" for a "switch".
* ID-FF 1.2: fix some real and potential memory leaksBenjamin Dauvergne2009-03-273-10/+16
| | | | | | | | | | | * 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.
* Test: add missing release of objects and memoryBenjamin Dauvergne2009-03-275-12/+65
| | | | | | | | | * tests/basic_tests.c: * tests/login_tests.c: * tests/metadata_tests.c: * tests/random_tests.c: * tests/tests.c: add missing g_free and g_object_unref calls.
* Bindings: skip DEPRECATED variablesBenjamin Dauvergne2009-03-271-0/+2
| | | | | * bindings/bindings.py: when parsing headers, skipped deprecated struct fields.