Commit Graph

84 Commits

Author SHA1 Message Date
Benjamin Dauvergne 7231771856 All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF code
* 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.
2009-08-26 15:14:32 +00:00
Benjamin Dauvergne a3c4a339f2 ID-WSF 2.0: remove unused variable
- lasso/id-wsf-2.0/discovery.c: remove unused variable in discovery.c
2009-08-26 15:13:51 +00:00
Benjamin Dauvergne 562be4b08a ID-WSF 2.0: review lasso_idwsf2_discovery_process_metadata_register_response_msg
* lasso/id-wsf-2.0/discovery.c
   (lasso_idwsf2_discovery_process_metadata_register_response_msg):
   change return code variable to rc, move argument casting after argument
   type check, copy all the service metadata ids,
2009-08-26 15:13:13 +00:00
Benjamin Dauvergne be6342b39a ID-WSF 2.0: review lasso_idwsf2_discovery_process_metadata_register_msg
* lasso/id-wsf-2.0/discovery.c
   (lasso_idwsf2_discovery_init_metadata_register):
   add documentation comment, move argument casting after type checking,
   change return code name to rc to comply with standardisation,
   use lasso_build_unique_id instead of duplicating the code,
   add iteration over all the registered service, add iteration
   to return all the generated service metadata ids, use new assignment
   macros.
 * lasso/id-wsf-2.0/discovery.h (struct _LassoIdWsf2Discovery):
   change field LassoIdWsf2DiscoSvcMetadata metadata to GList* metadatas
   and gchar *svcMDID to GList *svcMDIDs in order to support multiple
   services in requests.
2009-08-26 15:13:11 +00:00
Benjamin Dauvergne 714248160f ID-WSF 2.0: review lasso_idwsf2_discovery_metadata_register_self
* lasso/id-wsf-2.0/discovery.c
   (lasso_idwsf2_discovery_metadata_register_self):
   Add documentation, add code for getting the service URL.
2009-08-26 15:13:07 +00:00
Benjamin Dauvergne ecac419fa2 ID-WSF 2.0: add documentation to lasso_idwsf2_discovery_register_self
* lasso/id-wsf-2.0/discovery.c (lasso_idwsf2_discovery_register_self)
   move casting after argument type check, simplify code by using
   lasso_build_unique_id, remove useless comments
2009-08-26 15:13:05 +00:00
Benjamin Dauvergne 601d6da24d ID-WSF 2.0: simplify gobject boilerplate
* lasso/id-wsf-2.0/discovery.c: (get_xmlNode, instance_init, class_init)
   remove useless method get_xmlNode, remove useless NULLing or
   instance fields.
2009-08-26 15:13:02 +00:00
Benjamin Dauvergne dfb0b91ed6 ID-WSF 2.0: make it work with --enabe-debugging
* lasso/id-wsf-2.0/data_service.c:
 * lasso/id-wsf-2.0/discovery.c:
 * lasso/id-wsf-2.0/profile.c:
 * lasso/id-wsf/data_service.c:
 * lasso/id-wsf/discovery.c:
 * lasso/id-wsf/wsf_profile.c:
   when --enable-debugging is activated much more type checking is done
   by internal macros, and code do not pass compile anymore.
 * bindings/python/tests/idwsf2_tests.py: nameIdentifier packing in SOAP
   ID-WSF calls headers is no longer supported, do not test it.
2009-03-27 15:05:04 +00:00
Benjamin Dauvergne b09ef2e015 Core: do not mix public and private headers
* lots of files:
   explicitely load the internal header xml/private.h where needed.
2009-03-27 15:04:26 +00:00
Damien Laniel fad3fa581b added documentation for id-wsf 2.0 functions 2009-01-26 16:10:24 +00:00
Benjamin Dauvergne 33bbf7a7de All: Fix missing field initializer problems
* 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.
2009-01-24 09:33:40 +00:00
Damien Laniel 07fc694e10 removed unused destroy functions (only defined in .c or .h files) 2009-01-22 14:46:52 +00:00
Benjamin Dauvergne 47641f88bf Use assignment macros in id-wsf 2.0 module
* lasso/id-wsf-2.0/data_service.c, lasso/id-wsf-2.0/discovery.c,
   lasso/id-wsf-2.0/profile.c: use assignment macros to maintain proper
   reference counting and ownership of object field values.
2008-12-01 17:30:35 +00:00
Benjamin Dauvergne 9ed0670e48 * Remove ending blanks 2008-09-12 15:06:58 +00:00
Benjamin Dauvergne ae1f6a297c * Remove warnings:
- 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.
2008-09-12 13:57:22 +00:00
Benjamin Dauvergne 207891ff29 * Fix blanks mismatch (space in *.c and *h files or tabs in *.py files) and formatting 2008-08-05 14:53:29 +00:00
Damien Laniel e741a80a7f added some more missing unreference 2008-05-22 08:06:13 +00:00
Damien Laniel d83cd8381e added some more missing unreference 2008-05-21 23:29:28 +00:00
Damien Laniel 7e9dec9400 some comments 2008-05-21 10:10:46 +00:00
Damien Laniel eb2fbc8fc0 fixed some reference counting and memory management 2008-05-20 18:34:09 +00:00
Damien Laniel c9a8f041ab avoir function calls in parameter checks 2008-05-20 13:24:05 +00:00
Damien Laniel 975cff404d stronger check on empty string parameters 2008-05-20 10:38:12 +00:00
Frédéric Péters bc56d07345 removed direct usage of g_object_unref from lasso_*_destroy methods 2007-11-22 12:42:47 +00:00
Frédéric Péters 3fc428016f added a wrapper around xmlParseMemory to avoid network and DTD 2007-08-12 22:19:32 +00:00
Frédéric Péters 6204c8be9c adds all classes from ID-WSF 2 required schemas; with appropriate changes to
other files.
2007-07-10 08:50:56 +00:00
Damien Laniel 68583058a5 changed metadata_list attribute to SvcMD 2007-07-09 09:15:48 +00:00
Frédéric Péters d816d74c1a fixed class hierarchy, with ID-WSF 2 specific stuffs going into
LassoIdWsf2Profile (which now inherits from LassoProfile).
2007-06-19 11:16:17 +00:00
Damien Laniel eefdf3b586 moved soap_envelope_request and soap_envelope_response to ProfilePrivate to avoid ABI breackage 2007-06-18 09:43:47 +00:00
Damien Laniel 82d2325934 removed IdWsf2Profile and use LassoProfile instead 2007-06-13 14:14:57 +00:00
Damien Laniel 86da20c741 renamed Wsf2Profile to IdWsf2Profile 2007-06-13 12:59:27 +00:00
Damien Laniel be7b6a0898 changed buildQueryResponseMsg to buildQueryResponseEprs + buildResponseMsg 2007-06-13 11:58:40 +00:00
Damien Laniel 1f802571d0 replaced two strings with a constant 2007-06-13 10:14:41 +00:00
Damien Laniel bd0913130c better error handling + some refactoring 2007-06-13 10:09:55 +00:00
Damien Laniel 5ac539dff8 split lasso_idwsf2_discovery_process_query_msg for the SP to get the name_id and load the identity dump in between 2007-06-12 15:44:32 +00:00
Damien Laniel 91f0bdc61d encrypt nameId in profile identity token 2007-06-12 14:17:50 +00:00
Damien Laniel b92d470646 get the identity token from the current epr 2007-06-11 16:06:20 +00:00
Damien Laniel 5188108f36 added a security token in all eprs (only disco eprs had one before) 2007-06-11 15:29:36 +00:00
Damien Laniel 800f145069 fixed warnings 2007-06-11 15:27:50 +00:00
Damien Laniel e9845810e9 various error checks, coding style and refactoring 2007-06-11 09:10:32 +00:00
Damien Laniel 6886b79b93 various error checks, coding style and refactoring 2007-06-08 15:16:22 +00:00
Damien Laniel bb00c74ce3 removed useless arguments for lasso_idwsf2_discovery_init_metadata_association_add 2007-06-08 13:06:43 +00:00
Damien Laniel 71711d1862 added lasso_idwsf2_discovery_metadata_register_self and lasso_idwsf2_data_service_get_personal_profile_email 2007-06-08 09:14:37 +00:00
Frédéric Péters bb8e783e56 properly allocate memory for svcMDID 2007-06-07 15:22:38 +00:00
Frédéric Péters 7db5d0d33d be robust, check for possible NULL variables. 2007-06-07 13:29:15 +00:00
Damien Laniel eb5ca4d499 Copy session form discovery to data service object 2007-06-05 14:21:29 +00:00
Damien Laniel d9e8931979 moved identity token code from discovery to wsf2_profile 2007-06-04 16:20:53 +00:00
Damien Laniel 0bdf658ab9 removed useless code 2007-06-04 10:02:08 +00:00
Damien Laniel befd279632 swig binding for some ID WSF 2 functions + changed some types 2007-06-04 09:57:05 +00:00
Damien Laniel 4fc6657e0c updated Copyright dates in all files 2007-05-30 17:17:45 +00:00
Damien Laniel 3ee59ccb42 added data service class and lasso_idwsf2_discovery_get_service function 2007-05-30 17:00:53 +00:00