Commit Graph

44 Commits

Author SHA1 Message Date
Benjamin Dauvergne 72b778e47e Fix all cast-function-type warnings (#71400) 2022-11-21 13:28:08 +01:00
Benjamin Dauvergne e5ad4b1702 misc: clear warnings about class_init signature using coccinelle
$ spatch --in-place --sp-file add-second-arg-to-class-init.cocci `git grep -l -C1 ^class_init \*.c`
	$ sed -i 's/\*unused\>/*unused G_GNUC_UNUSED/' `git grep -l 'void \*unused'`
2020-03-26 22:52:49 +01:00
Simo Sorce 3a6b2fdee7 Fix license boilerplates
Instad of referring to an old FSF address, point the reader to the FSF
website where the latest licenses and addresses are published.

Signed-off-by: Simo Sorce <simo@redhat.com>
2013-12-03 21:55:06 +01:00
Benjamin Dauvergne b63bc73b93 XML: remove all useless instance_init functions
* 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.
2009-08-26 15:14:48 +00:00
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 63b38a4066 ID-FF 1.2: review HTTP-Redirect binding parsing/building
* lasso/xml/lib_authn_request.c, lasso/xml/lib_logout_request.c,
   lasso/xml/lib_register_name_identifier_request.c,
   lasso/xml/lib_status_resposne.c:
   - build_query: remove build_query overloaded virtual method, use
     LassoNode new generic implementation.
   - init_from_query:
     - change direct call to lasso_node_init_from_query_fields to use of
       base implementation from LassoNode.
     - make use of utils.h memory handling macros like
       lasso_release_gobject and lasso_assign_string.

 * lasso/xml/lib_federation_termination_notification.c:
   - init_from_query: remove parsing of RelayState parameter
2009-03-27 15:05:59 +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 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 46b91f034d include AssertionConsumerServiceID in query strings 2005-03-24 14:11:06 +00:00
Nicolas Clapies 6f87bd45a9 Now lasso_lib_request_authn_context_new() returns LassoLibRequestAuthnContex* instead of LassoNode*. 2005-02-10 13:53:36 +00:00
Frédéric Péters 2ae6eb5da0 correctly deals with RequestAuthnContext when rebuilding AuthnRequest from
query string
2005-02-02 00:08:16 +00:00
Emmanuel Raviart 7a03e99b09 Updated Copyright and authors. 2005-01-22 15:57:56 +00:00
Frédéric Péters 548c81feb3 removed lib:Scoping, optional 2005-01-21 21:27:47 +00:00
Frédéric Péters c9038ca0d5 reordered lib:authnRequest elements 2005-01-21 21:22:29 +00:00
Frédéric Péters b01a634664 new SNIPPET_OPTIONAL_NEG which allow to skip integer elements when set to -1
(useful for proxycount)
2005-01-21 20:54:09 +00:00
Frédéric Péters 97cd445ee3 documented more functions, reaching 50% symbol docs coverage (126 symbols
documented, 126 not documented)
2004-12-30 19:27:24 +00:00
Frédéric Péters 1975fecaff support for <lib:Extension> elements in query (not yet reconstructed); enabled
for <lib:AuthnRequest>
2004-12-27 16:10:15 +00:00
Frédéric Péters 9f80e37517 Done with the new query snippets system (everything but the IDPEntries in
<lib:AuthnRequest>).  It has nested <samlp:StatusCode> support but ID-FF layer
must still be updated to produce them.
2004-12-17 12:32:48 +00:00
Frédéric Péters f44d34eecb new (draft) query snippet mechanism to generate query string; deployed in
<lib:RegisterNameIdentifier/>
2004-12-17 00:07:20 +00:00
Frédéric Péters f5471b3acf added minimal support (only XML, no mapping to URL yet) for
<xs:element ref="Extension" minOccurs="0" maxOccurs="unbounded"/>

added memory management to list* XmlSnippet
2004-12-16 12:32:47 +00:00
Frédéric Péters 3352a6daa2 reviewed code marked with XXX 2004-12-08 09:38:07 +00:00
Frédéric Péters db9b04a96d another round on snippets; no longer multiply types for content transformation
(CONTENT_BOOLEAN, ATTRIBUTE_BOOLEAN, CONTENT_INTEGER, ATTRIBUTE_INTEGER...),
instead does something like this: SNIPPET_ATTRIBUTE | SNIPPET_INTEGER (other
combinations allowed)
2004-12-07 16:23:50 +00:00
Frédéric Péters 05577f5672 last(?) iteration on XmlSnippet; now attached to classes, get_xmlNode and
init_from_xml are no longer necessary in many cases.  Previous XmlSnippet
renamed to XmlSnippetObsolete to keep compatibility (id-wsf classes have not
yet been converted).
2004-12-02 14:54:43 +00:00
Frédéric Péters 8ad4344cd5 moved xml snippet stuffs into new internals.h; those should not be exposed;
changed snippet type from character to enum (defined in internals.h)
2004-11-26 14:13:02 +00:00
Frédéric Péters cd4f3ea1fc indentation work 2004-11-25 22:51:39 +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 358d12b508 unused variables 2004-11-18 10:23:01 +00:00
Frédéric Péters 59bdda3549 use same "xmlsnippets" (name will probably change) to build xml nodes 2004-11-17 23:04:57 +00:00
Frédéric Péters cfc0735197 refactored init_from_xml functions (lasso is now less than 20000 lines) 2004-11-17 17:18:51 +00:00
Frédéric Péters 07e1b7c04f return value on init_from_xml; and minor tweaks to code style 2004-11-09 09:08:47 +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 da4e23d09c declarations first (and s/lenght/length/) 2004-08-13 15:16:13 +00:00
Emmanuel Raviart 255f09ed98 Added Nicolas to authors. 2004-07-22 06:59:03 +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
Emmanuel Raviart b71373edae Renamed attribut to attribute. 2004-07-13 09:51:13 +00:00
Valery Febvre 5c9c919917 *** empty log message *** 2004-06-24 00:00:35 +00:00
Nicolas Clapies a77b7f8f4b update type of isPassive and forceAuthn params, instead use gboolean 2004-06-11 14:14:27 +00:00
Valery Febvre 290e743aa7 only cosmetic 2004-05-02 22:11:49 +00:00
Valery Febvre a672abf9cc Used new method set_ns() instead of new_ns() (in *_instance_init() methods) 2004-04-17 02:07:23 +00:00
Valery Febvre 88f8a19b60 *** empty log message *** 2004-04-08 14:59:36 +00:00
Valery Febvre caa62ddc7a Files moved. Initialy located in lasso/schema/ directory 2004-04-05 22:25:48 +00:00