Commit Graph

98 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 fbfbe5553d ID-FF&Core: Seal public field of LassoSession
* 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.
2009-08-26 15:13:55 +00:00
Benjamin Dauvergne e3bdadf8f7 ID-FF 1.2: Fix leaks, reduce code
* id-ff/login.c:
 * id-ff/logout.c:
 * id-ff/profile.c:
 * id-ff/provider.c:
 * id-ff/server.c:
   fix leaks by using field setting macros which frees previous values,
   it also reduce code length sometimes.
2009-04-30 14:58:20 +00:00
Benjamin Dauvergne 962a5d2403 new function lasso_profile_get_server()
* 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.
2009-04-27 08:19:30 +00:00
Benjamin Dauvergne 4463c2ccc2 ID-FF 1.2: Add trace in dispose for LassoProfile
* 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.
2009-03-27 15:06:37 +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 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
Benjamin Dauvergne 9ed0670e48 * Remove ending blanks 2008-09-12 15:06:58 +00:00
Frédéric Péters 6f1adef11c fixed order of freeing calls
(stolen from ec76ae4f7e40e99443ad421a85ec4d3fb7359bf3)
2008-07-22 12:09:06 +00:00
Damien Laniel da28448769 added some more missing unreference 2008-05-22 07:54:46 +00:00
Damien Laniel b3d861afa2 useless variables detroyer; they're already freed by snippets 2008-05-21 09:22:08 +00:00
Damien Laniel eb2fbc8fc0 fixed some reference counting and memory management 2008-05-20 18:34:09 +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 20f61fd653 formatting fix in docstring 2007-11-22 12:30:02 +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 fdf3feef49 initialise and destroy new attributes 2007-06-13 15:43:32 +00:00
Frédéric Péters 32aff7ef14 differentiate between id-wsf 1 & 2 since this is what is expected in other
places (won't work as easily for DST)
2007-06-08 18:16:42 +00:00
Frédéric Péters 6ef47339f7 recognize ID-WSF 2 disco query messages 2007-06-08 18:10:13 +00:00
Damien Laniel 4fc6657e0c updated Copyright dates in all files 2007-05-30 17:17:45 +00:00
Damien Laniel 6f43a7ef6f added id-wsf 2.0 request types + added a missing include 2007-04-25 14:15:25 +00:00
Frédéric Péters 540e2ebabc removing white space lost in a tab 2007-01-06 22:55:44 +00:00
Frédéric Péters e636bd0680 new lasso_profile_clean_msg_info function used to clean msg_url and msg_body
(free()ing and setting to NULL) in functions where those variables are later
set.
2007-01-05 13:40:07 +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 c5572210da SAMLv2 compliance fix (mostly RelayState and affiliations related) 2006-12-07 15:19:30 +00:00
Frédéric Péters e51ab22b76 include header file for lasso_saml20_profile_set_session_from_dump 2006-11-27 20:12:21 +00:00
Damien Laniel 0a391478be Added an original node to encrypted elements, only in dumps, for the dump to be readable 2006-11-23 17:44:26 +00:00
Frédéric Péters 011bc44569 random fixage of warning displayed with -Wall 2006-11-14 17:07:31 +00:00
Frédéric Péters 5bcb4d9035 also dump private data; necessary for saml2 artifact support 2006-11-13 11:12:59 +00:00
Frédéric Péters 67d514c1c1 include http request method in profile dumps 2006-11-10 15:12:18 +00:00
Frédéric Péters b6dd8e7fd9 spelling 2006-11-06 20:26:06 +00:00
Frédéric Péters 8706c32cff detection of SOAP name id management 2006-11-05 12:23:18 +00:00
Frédéric Péters 44ad1a38cc new lasso_profile_is_saml_query function 2006-11-02 14:13:19 +00:00
Frédéric Péters 367f94702b coding style 2006-11-02 10:23:13 +00:00
Frédéric Péters 853f46fd93 starting SAML 2 logout 2005-11-21 18:51:52 +00:00
Frédéric Péters ebb9f7dffc SAML 2.0 support (only web-sso for the moment) 2005-11-20 15:38:19 +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
Frédéric Péters a64f1cdbe4 profile->nameIdentifier should always points to *local* name identifier.
(not yet tested for federation termination)
2005-05-12 16:26:49 +00:00
Frédéric Péters b4f73b9cff free up Status if not NULL. 2005-03-29 13:19:05 +00:00
Nicolas Clapies 895a04a76b Added REQUEST_TYPE_SASL_REQUEST returned by lasso_profile_get_request_type_from_soap_msg(). 2005-03-21 16:51:33 +00:00
Frédéric Péters f40c157238 check param for NULL 2005-02-11 11:23:43 +00:00
Frédéric Péters 299d5bd2cf Document new functions; pretty please. Fixed memory leak introduced in
lasso_profile_get_request_type_from_soap_msg; moved wsf chunk from
build_assertion to its own function.
2005-01-28 10:25:19 +00:00
Emmanuel Raviart 472aded71a Merged wsf-api-change-not-for-0-6 branch with trunk. 2005-01-27 23:41:05 +00:00
Emmanuel Raviart 7a03e99b09 Updated Copyright and authors. 2005-01-22 15:57:56 +00:00
Frédéric Péters 21f8461ddd done with documenting if-ff/* functions 2005-01-21 10:51:24 +00:00
Frédéric Péters 225cb9a6c4 made lasso_profile_set_response_status into a private function 2005-01-12 15:17:10 +00:00
Frédéric Péters fe3928ad82 removed individual debug() statements in dispose() and finalize(); replaced by
a single statement in xml/xml.c; surrouded that one by LASSO_DEBUG so
--enable-debugging prints those memory-management debugging data.
2005-01-04 12:21:30 +00:00
Frédéric Péters ac3e5574fc moved remaining lasso[A-Z].* enums to Lasso[A-Z].* 2004-12-31 18:33:23 +00:00
Frédéric Péters b9efc048b8 set members to NULL to be sure 2004-12-30 17:39:22 +00:00