Commit Graph

28 Commits

Author SHA1 Message Date
Benjamin Dauvergne a041a2ef81 Initialize all uninitialized rc variables 2010-04-30 09:23:01 +00: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 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 930965e7f4 possibility to register new dst services. 2005-09-11 09:08:31 +00:00
Frédéric Péters 6eba7b86f5 API after the pp:query has been sent,
server:
  service = lasso.ProfileService(server)
  service.processQueryMsg(soap_message)
  identity = get_identity_by_resource_id(service.request.resourceId)
  service.resourceData = identity.get_pp_view()
  service.buildResponseMsg()
  return service.msgBody

client:
  service.processQueryResponseMsg(soap_answer)
  service.getAnswer()
  # or service.getAnswer('/pp:PP/pp:CommonName')
2005-08-12 14:25:44 +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
Emmanuel Raviart 7a03e99b09 Updated Copyright and authors. 2005-01-22 15:57:56 +00:00
Nicolas Clapies 5ac97cc649 Fixed error in xmlNewNs() call : first param must be xmlnode instead of NULL. 2005-01-13 13:31:27 +00:00
Frédéric Péters 56c32de385 added lib:Extension support to dst classes. 2004-12-24 12:07:31 +00:00
Frédéric Péters 50a3265341 fixed QueryResponse get_xmlNode function. 2004-12-22 23:07:20 +00:00
Nicolas Clapies 2d355c143f Updated get_xmlNode(). 2004-12-22 22:09:43 +00:00
Frédéric Péters 1faf90eefa Severe libxml2 and xmlsec riot.
Always put <ds:Signature> as the last node since it looks like the right thing
to do (and even if the schema seems to say otherwise).

Try to clean xml messages and remove redundant xml namespace declarations.
Behind libxml2 back and cleaning memory properly.

We���re off the streets now / And back on the road / On the riot trail.
2004-12-21 13:27:50 +00:00
Frédéric Péters 10751c7834 define correct namespace on QueryResponse 2004-12-21 09:28:16 +00:00
Frédéric Péters 723a4ee54f correctly sets namespace on Query and QueryResponse Personal Profile nodes. 2004-12-20 17:26:13 +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
Nicolas Clapies d3ada43315 Replaced LassoDiscoResourceIDGroup with old ResourceID and EncryptedResourceID. 2004-12-10 14:30:22 +00:00
Nicolas Clapies 6a44127d45 Fixed support of ResourceIDGroup : updated class of level 1 and id-wsf with this new class. 2004-12-08 14:02:25 +00:00
Valery Febvre 648315a0db Added AttributeStatement element support in Saml:Assertion (required for id-WSF).
Fixed constructor's required params of Disco classes.
Updated Disco classes with new snippet.
Updated some schema fragments.
2004-12-07 15:22:12 +00:00
Nicolas Clapies f7b49995a8 Added support of specific service : now QueryResponse element can be used by services and inherits their name space. 2004-12-07 11:29:34 +00:00
Frédéric Péters 1f5e8f900f consistency: comment stars are aligned; parent_class is no longer necessary;
struct indentation only use one tab; trailing \ are not necessary.
2004-12-03 12:05:41 +00:00
Nicolas Clapies b2c75f631f Updated LassoDstQueryResponse with new snippet feature in class instance. Moved schema comment from .h to .c 2004-12-03 11:11:49 +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
Nicolas Clapies 7e7c6a812c Initial version : added DST part of WSF for sis specific attribute services. 2004-11-30 11:23:26 +00:00