Commit Graph

94 Commits

Author SHA1 Message Date
Benjamin Dauvergne fd256b2269 Docs: change the doc production and lot of other fixes
* 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
2009-08-26 15:15:07 +00:00
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 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
Benjamin Dauvergne b2ed8f90a8 Core: make caller owner of the list, fix refcount leak 2009-01-24 09:34:23 +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 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
Damien Laniel a18ddb94e0 fixed various bugs with new compilation flags 2008-09-16 16:31:05 +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
Benjamin Dauvergne b9b65ed9fc * change g_list_add* to lasso_list_add* 2008-08-05 14:52:23 +00:00
Benjamin Dauvergne fd1294504f change g_assign_* to lasso_assgin_* and g_release_* to lasso_release_* 2008-08-05 14:52:20 +00:00
Benjamin Dauvergne ecb45a9f8f - surrounded declaration of containers for ID-WSF object with ifdef/endif, did
the same in initialization/finalization code.
- changed storage of resource offering from a list to a hash table
- added a counter to create entryIDs for newly added resource offerings
- simplify the code around resource offerings management
2008-08-01 14:09:57 +00:00
Benjamin Dauvergne 76d9fce5d5 forked lasso branch for adeline 2008-08-01 14:08:54 +00:00
Damien Laniel 3ab9da1120 fixed freeing svcMDID list 2008-05-21 23:29:14 +00:00
Frédéric Péters e5ba6151ba moved gtk-doc inline as is better on so many points; also added schema
fragments to published doc
2008-05-15 21:17:44 +00:00
Frédéric Péters 837805ccfc noted about memleak to be fixed later 2007-06-07 15:31:56 +00:00
Damien Laniel 3923e640cc check all function arguments in session and identity 2007-06-07 14:31:20 +00:00
Damien Laniel 4fc6657e0c updated Copyright dates in all files 2007-05-30 17:17:45 +00:00
Damien Laniel ac7aceee47 fixed usage of an identity without federation 2007-05-09 17:11:13 +00:00
Damien Laniel 386c12bcc4 fixed memory management 2007-05-09 16:06:43 +00:00
Damien Laniel d036d35a78 don't use misc_text_node 2007-05-09 15:29:56 +00:00
Damien Laniel de142fe27f replaced svcMDs with svcMDIDs in identity and moved EPRs from identity to session 2007-05-08 23:29:00 +00:00
Damien Laniel e8298f4278 get assertion from disco epr and put this assertion into soap header for metadata_association_add 2007-05-02 15:08:34 +00:00
Damien Laniel 6df43cf780 fixed function name 2007-05-02 13:28:40 +00:00
Damien Laniel 12d32a23c8 added method to get an assertion security token from an EPR 2007-05-02 13:23:41 +00:00
Frédéric Péters d839235ac5 const'ified a bunch of parameter that are immutable 2007-04-25 20:39:35 +00:00
Damien Laniel 10c8fcb306 fill profile->request in init_metadata_register + added soap_endpoint parameter 2007-04-25 09:37:30 +00:00
Damien Laniel 4895268a8e coding style fixes 2007-04-24 15:52:01 +00:00
Damien Laniel 4742f85471 coding style fix 2007-04-24 15:40:20 +00:00
Damien Laniel 5c99d2ea80 implemented discovery query 2007-04-24 15:25:08 +00:00
Damien Laniel 5bdab807c4 Build a Disco EPR within saml 2 login assertion 2007-04-19 16:33:52 +00:00
Damien Laniel 39a063b1db fixed gcc warnings 2007-04-19 12:40:19 +00:00
Damien Laniel 383c2e2983 minor fixes 2007-04-19 08:18:53 +00:00
Damien Laniel 27fa0a5739 completed metatada_register and metadata_association_add 2007-04-18 16:54:56 +00:00
Frédéric Péters 78b83a37b1 misc fixes for 1) memory leaks around XPath usage and 2) potential segfaults
from untested pointers
2007-01-03 23:35:17 +00:00
Frédéric Péters 58477d96d8 harmonized LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ and
LASSO_PARAM_ERROR_INVALID_VALUE usage
2006-12-28 17:46:32 +00:00
Frédéric Péters 17df2984aa replaced LASSO_ERROR_UNDEFINED by appropriate error codes in all of xml/ and
id-ff/
2006-12-28 10:19:46 +00:00
Frédéric Péters 0808887548 fixed all occurences of returning a negative number unspecified in errors.h 2006-12-27 23:50:15 +00:00
Frédéric Péters e4ce1e9a3f getOfferings without parameters will return all of them 2005-09-16 13:30:34 +00:00
Nicolas Clapies 4b75a46a39 Updated lasso_discovery_build_modify_response_msg() : now it sets status code to OK only if every remove entry are possible. 2005-09-05 10:00:07 +00:00
Frédéric Péters 36997b0ced expose identity/resourceoffering functions to developer 2005-08-12 22:16:07 +00:00
Frédéric Péters 0730a7f612 another id-wsf step, disco:query, looking up for resource offerings in identity 2005-08-09 15:17:58 +00:00
Frédéric Péters 4260c4a479 new remove entry; correctly restore resource offerings from identity dump 2005-08-09 10:20:53 +00:00
Frédéric Péters b3c376e02f renamed crunch to build since it doesn't look like there is a need for an
intermediate function for the moment.  process remove entries.  create correct
answer (when everything goes ok, no support for failure yet)
2005-08-09 07:31:01 +00:00
Frédéric Péters 86456f1894 lasso_discovery_crunch_modify_msg() (waiting for another name) process disco
modify insertEntries and adds them to active identity
2005-08-08 18:51:21 +00:00
Frédéric Péters 453c810fb8 char signedness for gcc 4 (id-wsf part has not been done) 2005-07-30 22:36:54 +00:00
Nicolas Clapies 9406df0c32 Now lasso_identity_new_from_dump() and lasso_session_new_from_dump() return NULL if the root element name is wrong. 2005-06-27 13:30:15 +00:00
Frédéric Péters 0869680575 added tests to fix bug #407 and avoir similar ones 2005-02-04 15:12:25 +00:00
Frédéric Péters 5369ba4c3c moved lasso_identity_{add,remove}_federation to private 2005-01-26 07:55:52 +00:00