summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* ID-WSF 2.0&ID-WSF: in profile.c, wsf_profile.c, errors.c, errors.h, and in ↵Benjamin Dauvergne2010-01-045-7/+7
| | | | lasso-sections.txt change LASSO_SOAP_FAULT_REDIRECT_REQUEST to LASSO_SOAP_ERROR_REDIRECT_REQUEST_FAULT
* ID-WSF 2.0 Errors: in errors.{c,h}, add new errors code for ID-WSF 2.0Benjamin Dauvergne2010-01-042-3/+139
| | | | | | - add LASSO_DST_ERROR_EMPTY_REQUEST - add LASSO_WSF_PROFILE_ERROR_SECURITY_MECHANISM_CHECK_FAILED - add new errors codes for generic profiles and disco service
* ID-WSF 2.0 XML: in strings.h, add identifiers from ID-WSF 2.0Benjamin Dauvergne2010-01-041-30/+757
| | | | | | | | | | | | standards - add status code for ID-WSF 2.0 DST - add token usage identifiers - conform security mechanism identifiers to ID-WSF 2.0 Liberty Sech Mech specification - add Discovery Service status codes - add Soap Binding status codes - add disco result type and user interaction hint strings
* ID-WSF 2.0 XML: in sec_token.c, remove extra SNIPPET_ANYBenjamin Dauvergne2010-01-041-1/+1
|
* ID-WSF 2.0 XML: in util_response.{c,h}, add helper functions to ↵Benjamin Dauvergne2010-01-042-0/+59
| | | | idwsf2_util_status
* ID-WSF 2.0: in server.c, change annotation of ↵Benjamin Dauvergne2010-01-041-1/+1
| | | | lasso_server_get_svc_metadatas_with_id_and_type.
* ID-WSF 2.0: in saml2_login.c, change APIBenjamin Dauvergne2010-01-044-145/+143
| | | | | | | | | | | | * lasso/id-wsf-2.0/saml2_login.c: - change private lasso_saml20_login_assertion_add_discovery to public lasso_login_idwsf2_add_discovery_bootstrap_epr. - remove lasso_saml20_login_copy_assertion_epr, add lasso_login_idwsf2_get_discovery_bootstrap_epr. * docs/reference/lasso/lasso-docs.sgml: - add sections id_wsf_2_0_login * docs/reference/lasso/lasso-sections.txt: - add new functions to section id_wsf_2_0_login
* ID-WSF 2.0: in idwsf2_helper.c, add new functions, fix old thingsBenjamin Dauvergne2010-01-042-21/+98
| | | | | - add lasso_wsa_endpoint_reference_get_service, lasso_wsa_endpoint_reference_associate_service_type_uri,
* ID-WSF 2.0: create idwsf2_helper.{c,h}, new module for manipulating EPR elementsBenjamin Dauvergne2010-01-043-2/+389
| | | | | | | | | | | | | | | | * lasso/id-wsf-2.0/idwsf2_helper.c lasso/id-wsf-2.0/idwsf2_helper.h: add new functions lasso_wsa_endpoint_reference_get_idwsf2_service_type, lasso_wsa_endpoint_reference_get_idwsf2_provider_id, lasso_wsa_endpoint_reference_get_idwsf2_security_context_for_security_mechanism, lasso_wsa_endpoint_reference_get_token_by_usage, lasso_wsa_endpoint_reference_get_security_token,lasso_wsa_endpoint_reference_get_target_identity_token, lasso_wsa_endpoint_reference_new_for_idwsf2_service, and lasso_wsa_endpoint_reference_add_security_token. * lasso/id-wsf-2.0/idwsf2_helper.h: declare new functions. * lasso/id-wsf-2.0/Makefile.am: add new files to source list
* ID-WSF 2.0: in soap_binding.{c,h}, add new functionsBenjamin Dauvergne2010-01-042-11/+191
|
* ID-WSF 2.0: add files soap_binding.c, soap_binding.hBenjamin Dauvergne2010-01-045-2/+297
| | | | | | | | | | | | | | | | | | | | | * lasso/id-wsf-2.0/Makefile.am - reference new source files in Makefile.am * lasso/id-wsf-2.0/soap_binding.c * lasso/id-wsf-2.0/soap_binding.h: - add extraction functions lasso_soap_envelope_sb2_get_provider_id, lasso_soap_envelope_sb2_get_redirect_request_url, lasso_soap_envelope_sb2_get_target_identity_header, lasso_soap_envelope_add_action and lasso_soap_envelope_get_action. - add SOAP security headers accessors - add lasso_soap_envelope_get_saml2_security_token which simplify retrieving a SAML 2.0 assertion used as a WS-Security token. complete documentation of other functions. * docs/reference/lasso/lasso-sections.txt: - reference the new functions in a new section soap_binding2 * docs/reference/lasso/lasso-docs.sgml: - add new section soap_binding2 ID-WSF 2.0: in soap_binding.{c,h}: add function
* ID-WSF: in id_ff_extensions.c, add SECTION gtk-doc declarationBenjamin Dauvergne2010-01-041-0/+1
|
* ID-WSF: in interaction_profile_service.{c,h}, make initialization of a ↵Benjamin Dauvergne2010-01-042-2/+2
| | | | redirect request, part of LassoWsfProfile methods.
* ID-WSF: in discovery.c:lasso_discovery_init_resource_offering, add doc ↵Benjamin Dauvergne2010-01-041-3/+4
| | | | annotations, use assignment macros to set output argument
* ID-WSF: in discovery.c, update documentation annotationsBenjamin Dauvergne2010-01-041-18/+17
| | | | | | | | | * lasso/id-wsf/discovery.c: - add annotations to lasso_discovery_init_query, lasso_discovery_init_modify, lasso_discovery_process_request_msg. - initialize response in lasso_discovery_process_query_mesg and lasso_discovery_process_modify_msg, so that modifications of the response can be done between _process_ and _build_ calls.
* ID-WSF: in data_service.c:lasso_data_service_init_query check absent ↵Benjamin Dauvergne2010-01-043-211/+339
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resource offering, support security_mech_id argument * lasso/id-wsf/data_service.c lasso/id-wsf/data_service.h: - in lasso_data_service_apply_modifications, dst_modification initialization is missing. - remove lasso_data_service_get_redirect_request_url - change LASSO_DATA_SERVICE_CANNOT_ADD_ITEM to LASSO_DATA_SERVICE_ERROR_CANNOT_ADD_ITEM - in lasso_data_service_init_query, complete documentation, fix mem leak - factorize code between lasso_data_service_build_modify_response_msg and lasso_data_service_build_query_response_msg, create lasso_data_service_build_response_msg - in lasso_data_service_get_answer, add out annotation to output parameter - simplify API, simplify code path for query and modification processing - add lasso_data_service_process_request_msg, lasso_data_service_build_modify_response_msg, lasso_data_service_validate_request. - remove lasso_data_service_process_query_msg and lasso_data_service_process_modify_msg from public API. - in lasso_data_service_process_query_msg and lasso_data_service_process_modify_msg add arg checks, make them static and move preprocessing of the request in lasso_data_service_process_request_msg. - in lasso_data_service_get_answer, fix request/response mismatch. - add accessors lasso_data_service_set_resource_data and lasso_data_service_get_resource_data. - add securit_mech_id arg to data_service_init_modify, export resource_data accessor methods - remove lasso_data_service_get_redirect_request_url - fix missing intializations and leaks
* ID-WSF: in wsf_profile.c, fix mem leaksBenjamin Dauvergne2010-01-041-6/+9
|
* ID-WSF XML: in dst_modification.c, add SNIPPET_BOOLEAN to overrideAllowed ↵Benjamin Dauvergne2010-01-041-1/+1
| | | | attribute snippet
* ID-WSF XML: in dst_modify.{c,h}, remove extra argument to the constructor of ↵Benjamin Dauvergne2010-01-042-10/+2
| | | | | | | | LassoDstModify * lasso/xml/dst_modify.c: * lasso/xml/dst_modify.h: remove parameters of the default constructor.
* Tests: in tests/login_tests.c, change path of header utils.hBenjamin Dauvergne2010-01-041-1/+1
|
* Tests: in basic_tests.c, fix, do not overwrite known elements mappingsBenjamin Dauvergne2010-01-041-4/+5
| | | | | | | | | * tests/basic_tests.c: when testing functionality of lasso registries which map namespace elements to lasso objects, do not use liberty namespace because it interacts with other tests -- deserialization of lib:Assertion node was broken by this test -- when running them in CK_FORK=no mode. Changed namespace LASSO_LIB_HREF, for "coin" which is less dangerous.
* WS XML: change signature of lasso_wsa_attributed_uri_new_with_string, add ↵Benjamin Dauvergne2010-01-043-2/+8
| | | | | | | | | | | mappings * wsa_attributed_uri.c: - constify first argument of lasso_wsa_attributed_uri_new_with_string. - add add direct mappings from wsa:Action,wsa:To to LassoWsAddrAttributedURI and from wsa:From,wsa:ReplyTo,wsa:FaultTo to LassoWsAddrEndpointReference
* SAML 2.0: in login.c, use lasso_server_saml2_assertion_setup_signatureBenjamin Dauvergne2010-01-041-8/+2
|
* XML: in private.h, remove duplicate declaration of lasso_xml_parse_memoryBenjamin Dauvergne2010-01-041-2/+0
|
* ID-FF XML: in lib_assertion.c, add registry mapping for lib:AssertionTypeBenjamin Dauvergne2010-01-041-0/+3
| | | | | | * xml/lib_assertion.c: this object is really a container for lib:AssertionType, so register it.
* Core: in provider.c, add lasso_provider_verify_single_node_signatureBenjamin Dauvergne2010-01-042-0/+31
| | | | | | | * lasso/id-ff/provider.c lasso/id-ff/provider.h: add a new function to check an enclosed single signature on a LassoNode, given that the LassoNode retained its original xml node content.
* SAML 2.0: in login.c, fix memleaksBenjamin Dauvergne2010-01-041-21/+27
| | | | | * lasso/saml-2.0/login.c: return value from lasso_provider_get_sp_name_qualifier must be freed.
* SAML 2.0: in login.c, remove discovery bootstrap handlingBenjamin Dauvergne2010-01-041-12/+0
|
* Core Login: in login.c, add assertion accessorBenjamin Dauvergne2010-01-044-3/+29
| | | | | | | | | | | * docs/reference/lasso/lasso-sections.txt: declare new function * lasso/id-ff/login.c lasso/id-ff/login.h: add new function lasso_login_get_assertion. * lasso/saml-2.0/login.c: store created assertions * lasso/id-ff/login.h: make assertion field private for bindings.
* SAML 2.0: in saml2_helper.c, add new methods to manipulate SAML2 assertionsBenjamin Dauvergne2010-01-044-1/+826
| | | | | | | | | | | | * lasso/saml-2.0/saml2_helper.c lasso/saml-2.0/saml2_helper.h: - add lasso_server_saml2_assertion_setup_signature, to help in defining signature upon saml2:Assertion nodes. - add new symbols LASSO_DURATION_MINUTE, LASSO_DURATION_HOUR, LASSO_DURATION_DAY, LASSO_DURATION_WEEK. - add method lasso_saml2_assertion_add_attribute_with_node * docs/reference/lasso/lasso-sections.txt: declare new functions in saml2_helper section.
* Tests: in basic_tests.c, check LassoSaml2EncryptedElement handlingBenjamin Dauvergne2010-01-041-0/+32
|
* SAML 2.0 XML: map EncryptedID, EncryptedAssertion, EncryptedAttribute and ↵Benjamin Dauvergne2010-01-041-0/+9
| | | | | | | | | NewEncryptedID element to saml2:EncryptedElement * lasso/xml/saml-2.0/saml2_encrypted_element.c: add registry mapping from EncryptedID, EncryptedAssertion, EncryptedAttribute and NewEncryptedID element to saml2:EncryptedElement
* SAML 2.0 XML: in strings.h, add the identifier for the holder of key subject ↵Benjamin Dauvergne2010-01-041-0/+1
| | | | confirmation method
* SAML 2.0: in provider.c, add node encryption function and reference it in docBenjamin Dauvergne2010-01-044-1/+70
| | | | | | | | | | | * lasso/saml-2.0/Makefile.am: add new header provider.h * lasso/saml-2.0/provider.c lasso/saml-2.0/provider.h: add new function lasso_provider_saml2_node_encrypt to encrypt nodes and encapslutate the XML Enc datas in a LassoSaml2EncryptedElement node. * docs/reference/lasso/lasso-sections.txt: add function to saml2_utils section
* WS XML: add forgotten include file to wsa_attributed_uri.c and ↵Benjamin Dauvergne2010-01-042-0/+2
| | | | wsa_endpoint_reference.c
* WS Errors: in errors.h errors.c, add new error section for WS-Security handlingBenjamin Dauvergne2010-01-042-0/+5
|
* Core: in server.c, change signature of lasso_server_get_provider, add ↵Benjamin Dauvergne2010-01-042-3/+3
| | | | | | | | anottations on return value * lasso/id-ff/server.h lasso/id-ff/server.c: - constify first argument of lasso_server_get_provider - add annotation about caller owned return value
* Core: in tools.c, complete documentation of lasso_verify_signatureBenjamin Dauvergne2010-01-041-2/+10
|
* Core: in provider.c, add accessors for encryption informationsBenjamin Dauvergne2010-01-042-2/+41
| | | | | | | * lasso/id-ff/provider.c: add getters for encryption_sym_key_type and encryption_public_key. * lasso/id-ff/providerprivate.h: declare new accessors.
* Core XML: in xml.{c,h}, add new function lasso_node_get_name to get the ↵Benjamin Dauvergne2010-01-042-0/+27
| | | | element name for an object
* Core XML: make first argument of lasso_misc_text_node_new_with_string constBenjamin Dauvergne2010-01-042-2/+2
| | | | | | * lasso/xml/misc_text_node.h lasso/xml/misc_text_node.c: change signature of lasso_misc_text_node_new_with_string, string argument is const.
* Core XML: in xml/tools.c, add conversion method from iso8601 to time_tBenjamin Dauvergne2010-01-042-0/+25
| | | | | | | * lasso/xml/tools.c: add function lasso_iso_8601_gmt_to_time_t * lasso/xml/private.h: declare new function.
* Core XML: in xml.c, keep original node names, handle xsi:type attribute betterBenjamin Dauvergne2010-01-042-77/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lasso/xml/xml.c lasso/xml/xml.h: - fix signature of lasso_node_set_original_xmlnode, fix signature in documentation of lasso_node_set_original_xmlnode; - add a new API lasso_node_set_custom_nodename to specify the exact element name to use when serializing a LassoNode to XML. - rename internal structure _CustomNamespace to _CustomElement, add a nodename field to it. - rework internal functions around _CustomElement to be aware of an existing attached _CustomElement and re-use if needed. - move application of _CustomElement hints after the serialization of the node, so that the normal behaviour of the serialization is kept -- i.e. do not play with the list of parent classes. - use the full xsi:type content to find a LassoNode subclass when de-serializaing XML content, factorize QName->GObject class mapping for the three executions paths inside _type_name_from_href_and_nodename: - element QName, - xsi:type QName, - element name with xsi:type namespace - add a long comment expliciting the way the mapping is done. - remove direct mapping of EncryptedAssertion element, the registry declaration on the class LassoSaml2EncryptedElement shoud be enough.
* Core XML: in xml.c, parse attributes with namespace checkingBenjamin Dauvergne2010-01-041-1/+8
| | | | | | * lasso/xml/xml.c: - use snippet->ns_uri and snippet->ns_name to parse attributes outside of the parent node namespace.
* Core XML: in xml/tools.c, improve lasso_eval_xpath_expression, do not fail ↵Benjamin Dauvergne2010-01-041-1/+1
| | | | | | | | when nodeset is empty * lasso/xml/tools.c: only check that the query returned a nodeset object, do not check its content size.
* Core: in utils.h, add a macros, fix existingBenjamin Dauvergne2010-01-042-3/+76
| | | | | | | | | | | | | | | | | | | | | | | | * lasso/utils.h: - add macro lasso_ref(object), if object is not null, call g_object_ref on it, and return the value, otherwise do nothing and return NULL. - make a better reporting of bad object release - change format type for __LINE__ and dest arguments in lasso_release_gobject warning display. - add a lasso_check_non_empty_string macro - add new macro to extract a specific node type from a list of GObject objects. - use xmlStrdup not g_strdup for lasso_assign_xml_string - add lasso_list_add_gstrv and lasso_check_good_rc - add macro lasso_list_get_first_child - add inline function to test empty string - change macro lasso_check_non_empty_string to use the new inline function and go to cleanup - fix lasso_check_non_empty_string macro * lasso/utils.c: - add lasso_gobject_is_of_type returns 0 if first parameters is a gobject whose GType is equal to the second parameter, and 1 otherwise.
* Core: add new errors LASSO_PROFILE_ERROR_INVALID_RESPONSE, ↵Benjamin Dauvergne2010-01-042-5/+23
| | | | LASSO_PROFILE_ERROR_INVALID_REQUEST.
* Bindings: in bindings.py, parse '(in)' gobject-introspection annotation, in ↵Benjamin Dauvergne2010-01-044-43/+54
| | | | | | | | | | utils.py, use it to reverse default annotation for pointer of pointers Bindings: in bindings.py, improve regular expression for declarations Bindings: parse gobject-introspection annotation in return value documentation, add cast to C calls when parameter type is const in java binding, problem arise with const char ** arrays
* Bindings: do not stop on failing to parse a declaration, but skip the ↵Benjamin Dauvergne2010-01-041-2/+3
| | | | function and print a warning
* Python binding: add a pyobject->time_t conversion functionBenjamin Dauvergne2010-01-041-2/+20
|