Commit Graph

67 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 854df3b651 ID-FF 1.2: Use new macros in logout, defederation and lecp
* lasso/id-ff/logout.c:
 - (lasso_logout_build_response_msg, lasso_logout_init_request,
    lasso_logout_process_request_msg, lasso_logout_process_response_msg,
    lasso_logout_validate_request) use lasso_assign_new_object,
   lasso_assign_string, lasso_release and lasso_assign_new_string when
   possible.
 - (lasso_logout_process_response_msg) move the tranfer of the relaystate
   from XML object to profile object.

* lasso/id-ff/defederation.c:
 - (lasso_defederation_build_notification_msg,
    lasso_defederation_init_notification,
    lasso_defederation_process_notification_msg,
    lasso_defederation_validate_notification): idem

* lasso/id-ff/lecp.c:
 - (lasso_lecp_build_authn_request_envelope_msg,
    lasso_lecp_build_authn_request_msg,lasso_lecp_build_authn_response_msg,
    lasso_lecp_build_authn_response_envelope_msg) idem
2009-03-27 15:06:21 +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 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
Damien Laniel 4fc6657e0c updated Copyright dates in all files 2007-05-30 17:17:45 +00:00
Frédéric Péters c2fa848a7e add missing profileprivate.h header for lasso_profile_clean_info function
declaration.
2007-04-14 16:30:59 +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 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 267dd3424a check for remote provider id before looking it in GHashTable 2006-01-23 15:30:00 +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 e87dc10be1 variables and functions shouldn't have the same names 2005-02-08 10:25:00 +00:00
Frédéric Péters 6cc0ebee5a removed all %s escaping sequences from lasso error strings; as a side effect
this simplifies critical_error macro, porting to non-gcc compilers should be
easier.  Along the way I also fixed the long standing bug #256.
2005-02-05 16:15:53 +00:00
Frédéric Péters af1459ccd9 removed extraneous liberty namespace registration and noted a future fix to
LECP to do.
2005-01-29 18:48:41 +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 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 e40295bfb8 added refcounting of server to other profiles 2004-12-30 16:47:35 +00:00
Frédéric Péters c338481e24 documented some new/destroy/dump/... functions 2004-12-30 15:12:12 +00:00
Frédéric Péters 69261570fa documenting lasso_{login|lecp}_init_authn_request 2004-12-30 12:57:26 +00:00
Frédéric Péters 2db50e6522 removed old signature code from LECP 2004-12-28 15:29:43 +00:00
Frédéric Péters 07fcdf0c4e generate xmlsec signatures in get_xmlNode; this should allow envelopes (in
LECP) to work properly.
2004-12-28 12:44:22 +00:00
Frédéric Péters 740e6be5e7 Fixed lasso_lecp_build_authn_request_envelope_msg,
lasso_lecp_process_authn_request_envelope_msg and
lasso_lecp_build_authn_request_msg to properly deal with signatures (and,
generally, to work)
2004-12-27 19:47:06 +00:00
Emmanuel Raviart c5d8c9dfd9 Replaced calls of lasso_provider_get_metadata_one with
lasso_provider_get_assertion_consumer_service_url in lecp.
2004-12-26 16:50:37 +00:00
Frédéric Péters 95afff30e7 Added differentiation between creating xmlnode for lasso use (the _dump
functions) and creating xmlnode for the wire (export_to_soap...).  This
was necessary to keep track of private_key_file to use on an Assertion
while it was kept in a lasso session dump and restored later.

This means the get_xmlNode functions have now a second parameter, gboolean
lasso_dump, TRUE when dumping for lasso internal use.

On the bright side assertions are now signed (that signature is not yet
checked).
2004-12-19 20:34:22 +00:00
Frédéric Péters 76ec7eb692 (almost) done with errors in ID-FF; remaining "return -1" have been converted
to LASSO_ERROR_UNDEFINED (there are forty-three of them).

LASSO_ERROR_UNDEFINED was redefined from -999 to -1 so it is easier to add new
sequences of errros.
2004-12-16 14:04:43 +00:00
Frédéric Péters 1e7cd34717 pointers are %p in format strings, not %x 2004-12-15 19:11:21 +00:00
Frédéric Péters 3dc8389da1 new LASSO_PROFILE_ERROR_NAME_IDENTIFIER_NOT_FOUND error code 2004-12-15 10:14:27 +00:00
Frédéric Péters 501da6b2b6 coherent error handling for "identity not found" and "federation not found"
cases.
2004-12-15 10:07:09 +00:00
Frédéric Péters 4fe9f93dfa new LASSO_PROFILE_ERROR_UNKNOWN_PROFILE_URL profile error and replaced a bunch
of 'return -1;' with that one.
2004-12-14 21:41:57 +00:00
Frédéric Péters ad056adf36 API change in Single Sign On profile (IdP side) to allow the developer to mess
with <lib:Assertion/>

Outlined in http://lists.labs.libre-entreprise.org/pipermail/lasso-devel/2004-December/001119.html
2004-12-14 19:20:20 +00:00
Frédéric Péters fa3d87885e [API Change] For consistency with the other profiles, remote_providerID has
been moved from build_authn_request_msg to init_authn_request in both Single
Sign-On and LECP profiles.  [details on lasso-devel@]
2004-12-14 10:20:07 +00:00
Frédéric Péters d1b99b7bbb Added back xmlsec signature check (and disabled it in name identifier mapping
profile since it is buggy there).  The signature check requires another call to
xmlParseMemory; this makes them 3 per SOAP message (sign check +
lasso_profile_get_request_type_from_soap_msg and lasso_node_init_from_message).
I'll think further about this.
2004-12-10 16:13:34 +00:00
Frédéric Péters c5a2dec0cc overridden spelling fix caused alignment wreckage 2004-12-10 09:55:27 +00:00
Emmanuel Raviart 1716502943 The past participle of "to override" is overridden.
see http://en.wiktionary.org/wiki/Overridden
2004-12-07 21:30:11 +00:00
Frédéric Péters 476ec0350c added error checking on query strings; python tests should now pass 2004-11-22 13:13:16 +00:00
Frédéric Péters a31a08d228 renamed lasso/environs/ to lasso/id-ff/ 2004-11-15 10:40:37 +00:00
Frédéric Péters 34dd2e5653 LECP converted to new tree 2004-11-01 18:23:20 +00:00
Frédéric Péters b40dfb2c28 ds:Signature in <samlp:request/> (in login) (and the signature is not verified
yet)
2004-10-29 23:06:37 +00:00
Frédéric Péters 66cc2630b4 removal of \n at end of error messages 2004-10-27 17:02:18 +00:00
Frédéric Péters f13772d62d Done with the move to structures and the removal of protocols/ (lasso branched
on October 2nd; occasional merges since then).

- Compatible with current souk test suites.
- Missing memory management for everything in xml/
- Missing xmlsec support for SOAP messages.
2004-10-27 09:49:13 +00:00
Valery Febvre 06e5dd5cf7 Added a param 'is_consent_obtained' in method:
lasso_login_build_artifact_msg(),
	lasso_login_build_authn_response_msg(),
	lasso_login_process_federation(),
	lasso_lecp_build_authn_response_envelope_msg()
AuthnRequest message accepts now all possible values for the NameIDPolicy:
none, onetime, federated, any

Added lasso_login_must_ask_for_consent() method
This method must be called after lasso_login_process_authn_request_msg()

Added lasso_login_process_without_authn_request_msg() method
This method is useful to initiate SSO from IDP.

Lasso.i was updated according to the changes.
2004-09-30 17:12:23 +00:00
Valery Febvre 0f5068dbf3 Renamed lasso_lecp_init_from_authn_request_msg() into lasso_lecp_process_authn_request_msg()
BEWARE : this change breaks the API
2004-09-22 13:24:06 +00:00
Emmanuel Raviart 21c603e245 Made remote_providerID optional in lasso_lecp_build_authn_request_msg and in
SWIG

Corrected SWIG handling of metadata.

Added attribute providerIds to Session in SWIG.
2004-09-20 15:52:03 +00:00
Frédéric Péters 2bde0c2ddb removed extra parentheses after return statements; 2004-09-01 09:59:53 +00:00