summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* XML: add all inclusive header files for id-wsf2, ws, id-wsf XML elementsBenjamin Dauvergne2009-09-113-1/+230
| | | | | | | * lasso/xml/wsf/xml_ws.h: * lasso/xml/id-wsf-2.0/xml_idwsf2.h: * lasso/xml/xml_idwsf.h: new files.
* ID-WSF 2.0: add set_request/set_response method to Profile objectBenjamin Dauvergne2009-09-112-0/+43
| | | | | | | * lasso/id-wsf-2.0/profile.c: * lasso/id-wsf-2.0/profile.h: add two methods that set the response object and replace the content of the SOAP message with this object.
* XML SOAP: add new soap fault constructorBenjamin Dauvergne2009-09-112-2/+20
| | | | | | | * lasso/xml/soap_fault.c: * lasso/xml/soap_fault.h: add a full constructor allowing to set faultcode and faultstring in one call.
* XML ID-WSF 2.0: make non simple constructor of MiscTextNode return real typeBenjamin Dauvergne2009-09-111-3/+3
| | | | | | * lasso/xml/misc_text_node.c: non simple constructor must return the real object type because Java binding does not work without it.
* XML SAML 1.1: fix schema figure for samlp:RequestBenjamin Dauvergne2009-09-111-2/+1
|
* Docs: remove old lasso-sections.txt fileBenjamin Dauvergne2009-09-111-529/+0
|
* ID-WSF 2.0: add accessor for field of LassoIdWsf2ProfileBenjamin Dauvergne2009-09-112-0/+37
| | | | | | * lasso/id-wsf-2.0/profile.c lasso/id-wsf-2.0/profile.c: add two accessor to get to soap_response and soap_request object, next step is to make those two fields really private.
* ID-WSF: fix duplication of namespace string declaration, add fault codes for ↵Benjamin Dauvergne2009-09-111-19/+73
| | | | | | | | WS-Security * lasso/xml/strings.h: namespace of WS-Security 1.0 was duplicated, add specified fault code linked to WS-Security.
* ID-WSF: remove LassoWsseSecurity in favor of LasoWsSec1SecurityHeaderBenjamin Dauvergne2009-09-114-175/+3
| | | | | | | | | | * xml/Makefile.am: remove the file from the source list * xml/wsse_security.c: * xml/wsse_security.h: remove the files * xml/xml.c: use LassoWsSec1SecurityHeader for LASSO_WSSE_HREF namespace also.
* ID-WSF 1.0: use the common wsse:Security objectBenjamin Dauvergne2009-09-111-7/+13
| | | | | | | | * lasso/id-wsf/wsf_profile.c: use the common LassoWsSec1SecurityHeader object instead of the specific LassoWsseSecurity, and set the needed namespace using lasso_node_set_custom_namespace. add implementation comments.
* WS: register LassoWsSec1SecurityHeader for all namespace associated to ↵Benjamin Dauvergne2009-09-111-0/+14
| | | | | | | WS-Security * lasso/xml/ws/wsse_security_header.c: register all namespace that contains a Security header object.
* XML: add an API to set namespace on a single instance of a LassoNodeBenjamin Dauvergne2009-09-112-1/+74
| | | | | | | | | | | | | | | | | | * lasso/xml/xml.h lasso/xml/xml.c: add a new public API lasso_node_set_custom_namespace(node, prefix, href). It allows to set the precise namespace of a single object, all other instance of the same class continue to use the default namespace for the class. It should be used for difficult consumer of certain nodes (like wsse:Security) which only know certain namespace or do not use the namespace going with the specified version of a specification (like MSP not following ID-WSF 1.0 specification and using http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd instead of http://schemas.xmlsoap.org/ws/2003/06/secext. It also allows to share implementation of schema objects common to many version of the same specification (wsse:Security between ID-WSF 1.0 and ID-WSF 2.0), without creating too many child classes.
* ID-WSF 2.0: remove obsolete FIXME in discovery.hBenjamin Dauvergne2009-09-111-1/+0
|
* Core: remove a use of lasso_node_destroy in LassoSessionBenjamin Dauvergne2009-09-111-1/+1
|
* Bindings: add support for gucharBenjamin Dauvergne2009-09-112-7/+7
| | | | | | * bindings/java/lang.py: * bindings/python/lang.py: add guchar to list of C types everywhere.
* XML: add support for free xml content to LassoMiscTextNodeBenjamin Dauvergne2009-09-112-7/+81
| | | | | | | | | | | | | | * lasso/xml/misc_text_node.c: * lasso/xml/misc_text_node.h: it is often necessary to be able to put completely determined content inside lasso generated request (for example when copying an assertion for a Bearer authentication method). In this case you can use lasso_node_get_original_xml_node to get at the original content and lasso_misc_text_node_new_with_xml_node to get a LassNode with the same content. There are two additional function to acces this xml payload: lasso_misc_text_node_get_xml_content and lasso_misc_text_node_set_xml_content.
* Core: fix commit 4313, restore support for --enable-wsfBenjamin Dauvergne2009-08-281-0/+4
| | | | | * configure.ac: I throwed the baby with the bathwater..
* Core: fix make dist with --enable-wsfBenjamin Dauvergne2009-08-282-3/+4
| | | | | | * lasso/id-wsf-2.0/Makefile.am: * lasso/xml/Makefile.am: some files were missing from the dist files, add them.
* Core: remove SWIG ID-WSF warning from configure.acBenjamin Dauvergne2009-08-281-23/+0
| | | | | | | * configure.ac: as ID-WSF support in SWIG in not maintained anymore we can remove the warning about using pre-generated SWIG files with a different setting for the --enable-wsf flag.
* Binding: skip lasso_data_service_get_query_itemBenjamin Dauvergne2009-08-281-0/+1
| | | | | | * bindings/overrides.xml: bindings do not support out arguments, so skip generating bindings for lasso_data_service_get_query_item for the moment.
* Core: set tar-pax as dist file formatBenjamin Dauvergne2009-08-281-1/+1
| | | | | | * configure.ac: we could have more than 99 characters long path in the dist files, the pax format for tar archives support it.
* ID-WSF 1.0: Fixed missing or deprecated functions in public headersBenjamin Dauvergne2009-08-287-77/+25
| | | | | | Some new functions were missing from the headers, others were deprecated some time ago and as the API is not considered stable for ID-WSF, I removed them definitely.
* Bindings: Skip lasso_data_service_get_answersBenjamin Dauvergne2009-08-271-0/+1
| | | | * bindings/overrides.xml: skip unsupported function.
* Tests: add configuration file loading to integration testBenjamin Dauvergne2009-08-272-13/+52
| | | | | | | | | | | | * tests/integration/README: * tests/integration/saml2/__init__.py: If ~/.config/lasso_integration.conf exists, load it to find path to authentic and lcs. Add support for three environement variables: - LASSO_BUILDDIR, to specify an out of source build directory to test, - NO_SILENT, to allow authentic and lcs outputs, - VALGRIND, to check memory leaks using valgrind.
* Call gtkdocize before automakeFrederic Peters2009-08-261-3/+3
|
* Core: errors.c is a generated file, when generating it place it in $(srcdir) ↵Benjamin Dauvergne2009-08-261-2/+2
| | | | | | | | not build directory * lasso/Makefile.am: the place for errors.c is in the source directory, not the build directory.
* SAML 2.0: Fix bug introduced in commit 4235Benjamin Dauvergne2009-08-261-2/+4
| | | | | | | * lasso/saml-2.0/login.c: profile->msg_url is released before being used ;( Restore the code copying the URL before passing it to lasso_saml20_profile_build_http_redirect, to free it after.
* Core: Fix errors.c generationBenjamin Dauvergne2009-08-261-4/+4
|
* XML SAML2: remove typedef of LassoSaml2Assertion in saml2_advice.h and ↵Benjamin Dauvergne2009-08-262-11/+0
| | | | | | | | saml2_evidence.h * xml/saml-2.0/saml2_advice.h xml/saml-2.0/saml2_evidence.h: the declaration of LassoSaml2Assertion for supposedly preventing recursive include is useless now.
* Core: fix spurious semi-colon inserted in commit 4093Benjamin Dauvergne2009-08-261-1/+0
| | | | | * lasso/errors.h: remove useless semi-colon
* Core: add assertion query to exported profilesBenjamin Dauvergne2009-08-261-0/+1
| | | | | * lasso/lasso.h: include lasso/saml-2.0/assertion_query.h
* XML: Add all including header fil for saml2, id-ff and id-wsfBenjamin Dauvergne2009-08-266-1/+243
| | | | | | | | | * lasso/xml/xml_idff.h: this header file reference all id-ff 1.2 elements * lasso/xml/xml_idwsf.h: this header file reference all id-wsf 1.0 elements * lasso/xml/saml-2.0/xml_saml2.h: this header file reference all saml-2.0 elements
* Core: Remove include of lasso.h in registry.hBenjamin Dauvergne2009-08-262-4/+2
| | | | | | | * lasso/registry.h: include of lasso.h is useless, replace by including directly export.h * lasso/registry.c: directly include errors.h
* ID-WSF: remove OFTYPE usage from headerBenjamin Dauvergne2009-08-261-2/+1
|
* Docs: change the doc production and lot of other fixesBenjamin Dauvergne2009-08-2653-3271/+9466
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Core: fix makefile for generating errors.h in out of source dir buildBenjamin Dauvergne2009-08-261-1/+1
| | | | | * lasso/Makefile.am: errors.h is expected to be in srcdir not builddir.
* Bindings: for functions that must be totally skiped do it during parsingBenjamin Dauvergne2009-08-261-27/+35
| | | | | | | * bindings/bindings.py: parsing of argument type is still not advanced enough, so in order to remove spurious warnings, skip function directly during parsing just before the treatment of function signature.
* Tests: in integration test do not set the PYTHONPATHBenjamin Dauvergne2009-08-261-1/+0
| | | | | | | * tests/integration/saml2/__init__.py: to permit using build directory different from the src directory, do not force the PYTHONPATH to be relative to src dir to find lasso python module.
* Tests: do not hardcode PYTHONPATH in the valgrind wrapperBenjamin Dauvergne2009-08-261-1/+1
| | | | * tests/integration/valgrind-wrapper.sh: remove PYTHONPATH setting.
* Tests: distribute integration testsBenjamin Dauvergne2009-08-261-1/+1
| | | | | * tests/Makefile.am: add integration directory to the distdir.
* Core: Use automake-1.11 when possibleBenjamin Dauvergne2009-08-2627-291/+117
| | | | | | | | | | | | | | * Makefile.am: use new automake-1.11 silent rules if possible move macros to m4 directory * m4/gtk-doc.m4: add gtk-doc macros. * lasso/Makefile.am: add missing -f flag to rm, to unbreak make distcheck * docs/references/Makefile.am: fix problem between libtool and gtk-doc * autogen.sh: update to autogen.sh from gtk-doc, add support for automake-1.11
* Tests: Add data files to EXTRA_DISTBenjamin Dauvergne2009-08-261-1/+1
| | | | | * tests/data/Makefile.am: data file for tests2 were missing (to pass distcheck).
* XML: remove all useless instance_init functionsBenjamin Dauvergne2009-08-26282-1934/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use Coccinelle semantic patch tool (http://coccinelle.lip6.fr/) to remove useless instance_init functions, the first patch applied was: @@ type T,V; identifier I, J; parameter list P; expression E1; @@ V instance_init(T node) { <... ( - E1 = 0; | - E1 = NULL; | - E1 = FALSE; ) ...> } It removes useless initialization to 0 (GObject already zeroes allocated objects). The second one is: @ rule1 @ type T; identifier node,fn; @@ - static void fn(T *node) { } @ rule2 extends rule1 @ typedef GType, GInstanceInitFunc; identifier type_constructor; @@ GType type_constructor() { <... - (GInstanceInitFunc)fn + NULL ...> } It removes empty instance_init functions.
* sb2:TargetIdentity can have a contentBenjamin Dauvergne2009-08-262-0/+3
| | | | | | * lasso/xml/id-wsf-2.0/sb2_target_identity.c: * lasso/xml/id-wsf-2.0/sb2_target_identity.h: add support for any content.
* All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF codeBenjamin Dauvergne2009-08-26491-1713/+2160
| | | | | | | | | | | | | * 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.
* Bindings: skip ID-WSF methods with unsupported signaturesBenjamin Dauvergne2009-08-261-3/+6
| | | | | | * bindings/overrides.xml: some functions have output parameters (pointer on pointers) that are currently not supported by our binding generator, so we skip them.
* SWIG: unplug id-wsf support in SWIGBenjamin Dauvergne2009-08-262-44/+31
| | | | | * swig/Lasso.i: force LASSO_WSF_ENABLED to be undefined.
* Tests: allow tests2 to pass distcheckBenjamin Dauvergne2009-08-262-8/+7
| | | | | | | | * tests/Makefile.am add an SRCDIR symbol. remove unused include paths. * tests/tests2.c: use SRCDIR to find data files.
* Tests: remove internal content from data filesBenjamin Dauvergne2009-08-261-6/+4
| | | | | | | * tests/data/response-3: this dump of a SAML message contains elements and attribute outside the SAML schema, implementation detail from Lasso. They broke execution of tests/tests2.
* XML&SAML 2.0: add missing include filesBenjamin Dauvergne2009-08-261-1/+2
| | | | | | * lasso/xml/saml-2.0/saml2_encrypted_element.h: xmlSecKey is present in a function signature, so include xmlsec/xmlsec.h.