Commit Graph

61 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 b7d4e1b3e9 ID-WSF 2.0: use new macros
* 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
2009-08-26 15:12:58 +00:00
Benjamin Dauvergne 526962420c ID-WSF 2.0: add initialization of local variables 2009-08-26 15:12:52 +00:00
Benjamin Dauvergne 78453bd8f7 ID-WSF 2.0: Use new XPath API in DST
- lasso/id-wsf-2.0/data_service.c:
   - lasso_idwsf2_data_service_parse_query_items: use the new API to
   remove error outputs from libxml, and generate an additional status
   code containing newly returned libxml error code.
   - lasso_idwsf2_data_service_parse_one_modify_item: use the new API.
2009-08-26 15:12:49 +00:00
Benjamin Dauvergne 81bc017436 Do not respect default semantic of dst:Query
* lasso/id-wsf-2.0/data_service.c:
   the specification for data service template indicat that the query
   must fail at the first failing query, we think this is a stupid
   behaviour so I set the default to keep running query until the last
   one and returning a partial result if at least one failed and a
   failed result if absolutely no query matched.
 * lasso/id-wsf-2.0/private.h:
   declare the lasso_flag_follow_id_wsf_supid_semantic flag.
 * lasso.c:
   declare the lasso_flag_follow_id_wsf_supid_semantic flag, it's
   conditionned by the LASSO_WSF_ENABLED preprocessor symbol.
2009-05-07 12:36:00 +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
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 0d66367f28 Remove use of xmlFreeDoc for lasso_release_doc
- 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.
2008-11-04 01:58:49 +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 2e7bd59c87 allow getting xpath attributes like /node/@attr 2008-05-26 16:43:22 +00:00
Damien Laniel c02440d5ba don't test NULL value before calling gfree + proper list freeing 2008-05-26 14:28:45 +00:00
Damien Laniel 23fdb5641e allows querying a list of items with ID-WSF 2.0 data service 2008-05-14 18:16:30 +00:00
Frédéric Péters ce18fb098f added lasso_idwsf2_data_service_get_attribute_nodes method 2008-05-14 16:37:00 +00:00
Benjamin Dauvergne 8adb45fdb7 const gboolean as argument is useless and it disturbs the bindings 2008-03-28 16:06:04 +00:00
Frédéric Péters 9755fdd108 register all known prefixes to xpath context 2008-02-01 11:20:37 +00:00
Damien Laniel e9be9c80c0 changed the way status code is handled to make code simpler 2007-10-04 16:17:35 +00:00
Damien Laniel 232294bbaf some error checks and some coding style 2007-09-21 15:12:18 +00:00
Frédéric Péters a7c3eed730 adds support for text as answer to dst queries (instead of forcing answers to
be full nodes)
2007-09-12 15:33:35 +00:00
Damien Laniel 73db5fc58f processModifyResponseMsg 2007-08-08 16:03:29 +00:00
Damien Laniel 83c9fbb157 parse modify items 2007-08-06 16:45:06 +00:00
Damien Laniel 2867ab1933 added first functions for ID-WSF 2 attribute modification 2007-07-30 13:24:02 +00:00
Frédéric Péters 9163f6f4bb DstRefAppData is just a template, don't consider it a string but a container
for anything
2007-07-30 09:24:37 +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 7a2d6aaf8a check enveloppe existence in case lasso functions are called in wrong order 2007-07-05 13:10:23 +00:00
Damien Laniel e684aa7d08 added service.queryItems + some attributes initialisation and destruction 2007-07-02 15:12:48 +00:00
Damien Laniel 1db332e9f8 added lasso.SOAP_FAULT_REDIRECT_REQUEST eception when WSP needs user consent + service.redirectUrl 2007-06-29 15:25:19 +00:00
Damien Laniel dfe7e09a7f added initRedirectUserForConsent 2007-06-29 14:02:29 +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 2b17cdf029 moved epr free from finalize to dispose 2007-06-13 17:24:42 +00:00
Damien Laniel 56b653cc55 use nameIdentifier attribute of LassoProfile for IdWsf2 profiles 2007-06-13 15:45:38 +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 b51330fe82 changed buildQueryResponseMsg to parseQueryItems + buildResponseMsg 2007-06-13 12:19:48 +00:00
Damien Laniel bd0913130c better error handling + some refactoring 2007-06-13 10:09:55 +00:00
Damien Laniel b92d470646 get the identity token from the current epr 2007-06-11 16:06:20 +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 6bd1d65a19 removed lasso_idwsf2_data_service_get_personal_profile_email 2007-06-08 11:42:21 +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
Damien Laniel 227239cc12 memory management in lasso_idwsf2_data_service_get_attribute_string 2007-06-07 13:13:10 +00:00
Damien Laniel 8d5ff46e8f small fixes in lasso_idwsf2_data_service_get_attribute_string 2007-06-07 13:05:25 +00:00
Damien Laniel 189562fa94 one more argument check + free node memory 2007-06-07 12:59:48 +00:00
Damien Laniel beb49ef5b3 added some checks on arguments 2007-06-07 12:54:17 +00:00
Damien Laniel e89552953e added lasso_idwsf2_data_service_get_attribute_string 2007-06-07 12:49:42 +00:00