Commit Graph

44 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 81bc017436 Do not respect default semantic of dst:Query
* lasso/id-wsf-2.0/data_service.c:
   the specification for data service template indicat that the query
   must fail at the first failing query, we think this is a stupid
   behaviour so I set the default to keep running query until the last
   one and returning a partial result if at least one failed and a
   failed result if absolutely no query matched.
 * lasso/id-wsf-2.0/private.h:
   declare the lasso_flag_follow_id_wsf_supid_semantic flag.
 * lasso.c:
   declare the lasso_flag_follow_id_wsf_supid_semantic flag, it's
   conditionned by the LASSO_WSF_ENABLED preprocessor symbol.
2009-05-07 12:36:00 +00:00
Benjamin Dauvergne 1b0d28b102 Fix leak of mapping registry
* lasso/lasso.c:
 * lasso/registry-private.h:
 * lasso/registry.c:
   make the registry be freed in lasso_shutdown.
2009-04-30 14:58:22 +00:00
Benjamin Dauvergne 2ebaae63c3 review later 2009-04-27 14:31:48 +00:00
Benjamin Dauvergne 3cd463c4a2 Core: add an header file for backward compatibility
* lasso/backward_comp.h:
   this header will contain substitue function, defines or types for
   compatibility with older versions of dependencies.
 * lasso/utils.h:
   remove declaration of g_strcmp0
 * lasso.c:
 * tests/login_tests.c:
   use backward_comp.h
2009-04-14 07:51:22 +00:00
Benjamin Dauvergne b6ec9b4a09 Core: add a add-signature flag
* lasso/debug.h:
 * lasso/lasso.c:
   add a lasso_flag_add_signature flag variable (default to TRUE),
   and parsing code to change it from LASSO_FLAG environment variable.
   ("env LASSO_FLAG=no-add-signature test").
2009-03-27 15:06:43 +00:00
Benjamin Dauvergne cc4a7a56b5 Core: Add a flag for enabling more strict checking
* lasso/debug.h:
   declare lasso_flag_strict_checking global boolean variable.

 * lasso/lasso.c:
   add parsing for new option called 'strict-checking'.
2009-03-27 15:06:40 +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
Damien Laniel 5aafc13002 documentation-related fixes 2009-01-26 16:42:19 +00:00
Benjamin Dauvergne 08c80ab934 Add substitute code for g_strcmp0 2008-10-16 21:33:25 +00:00
Benjamin Dauvergne ef42f2cbc8 add functionality to enable debugging flags at runtime
This code permit to set flags, separated by commas, space,
tabulations, or colons. This flags activates debug functions like,
suppressing validations of signatures or print debugging message about
deallocations.

The new flags are defined in /lasso/debug.h they can be set using an
environment variable named LASSO_FLAG or a function named
lasso_set_flag.

There are two flags currently:
- verify-signature:
  To deactivate it, pass 'no-verify-signature' inside LASSO_DEBUG.
  It desactivate signature verification, inside two functions:
  lasso_query_verify_signature and lasso_provider_verify_signature.
- memory-debug:
  It enabled reporting of memory deallocation inside generic memory
  dellaocator for LassoNode objects and also in bindings.

- lasso/xml/xml.c: do not free a null hash table pointer.
2008-10-01 10:31:58 +00:00
Benjamin Dauvergne 9ed0670e48 * Remove ending blanks 2008-09-12 15:06:58 +00:00
Benjamin Dauvergne 76d9fce5d5 forked lasso branch for adeline 2008-08-01 14:08:54 +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
Damien Laniel ee093042ad Replaced return -1 with return LASSO_ERROR_UNDEFINED 2006-11-02 10:51:13 +00:00
Frédéric Péters 9ea6f71fbe added dumb numerical mode to checkVersion; added swig binding for this
function; generating Lasso.i considered bad idea, cleaned and removed.
2005-02-17 13:35:15 +00:00
Frédéric Péters 5c4638053f use gtk-doc style function comment for DllMain 2005-02-10 14:56:27 +00:00
Emmanuel Raviart 7a03e99b09 Updated Copyright and authors. 2005-01-22 15:57:56 +00:00
Frédéric Péters a895bd81bc removed lasso_check_version_exact and lasso_check_version macros; renamed
lasso_check_version_ext to lasso_check_version.
2005-01-12 15:14:29 +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 a922e139d7 added types (classes) extraction on build and registration in lasso_init 2004-12-04 13:37:53 +00:00
Frédéric Péters c556e1fdcc limit line length to 100 characters. 2004-11-25 22:25:51 +00:00
Frédéric Péters 444abc480f indented lasso.c 2004-10-27 15:49:43 +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
Frédéric Péters cc5bffb4bd removed remaining parenthesis on return statements 2004-09-17 15:19:18 +00:00
Frédéric Péters 3efabaa8d8 disable xmlsec version check 2004-09-02 08:33:54 +00:00
Frédéric Péters 2bde0c2ddb removed extra parentheses after return statements; 2004-09-01 09:59:53 +00:00
Emmanuel Raviart 5d55d61805 Typo correction. 2004-08-31 10:54:48 +00:00
Frédéric Péters 09a8899c80 get away from G_LOG_LEVEL_ERROR since they cause abort() 2004-08-14 12:57:13 +00:00
Valery Febvre 42342c4561 Moved '#include <lasso/lasso_config.h> into lasso.c
Added also in py_lasso.c
2004-08-04 14:22:26 +00:00
Valery Febvre 78178c89fb Added a missing #include 2004-07-30 15:33:58 +00:00
Frédéric Péters 72fca15efd use message functions to show message (fix #217) 2004-07-25 17:31:43 +00:00
Valery Febvre 093ef9faa6 Added 2 missing #include (for xmlsec) 2004-07-24 15:47:01 +00:00
Romain Chantereay ae11abae6a Migrated windows.h inclusion from lasso.c to lasso.h. 2004-07-23 17:13:49 +00:00
Emmanuel Raviart 255f09ed98 Added Nicolas to authors. 2004-07-22 06:59:03 +00:00
Frédéric Péters 366e8e54a2 C (before C99) didn't allow // as comments; trying to be kind 2004-07-21 16:56:52 +00:00
Romain Chantereay 1ee73b81c7 Added Cygwin/Windows compilation support.
Now: just:

./autogen --hots=i686-pc-mingw32
make
make dll
make install dll

Of course you will need to install the dependencies libraries in /usr/local in
order to compile.

And next the DLL in Windows %SYSTEM% directory.
2004-07-16 12:54:43 +00:00
Frédéric Péters 2b209ad4bd replaced C++ // comments with C /* */ comments before we fall on a pre-C99
compiler.
2004-07-15 10:42:38 +00:00
Valery Febvre 5b88b7ad84 *** empty log message *** 2004-07-08 13:45:42 +00:00
Valery Febvre 98d6264ead Many many memory leaks fixed 2004-05-15 00:38:03 +00:00
Valery Febvre f1d2812a74 *** empty log message *** 2004-04-13 10:15:54 +00:00
Valery Febvre d09a0de3b0 Fct lasso_shutdown() now return int values. 2004-04-02 00:40:22 +00:00
Valery Febvre 88e00f56a4 Initial revision 2004-03-23 17:00:23 +00:00