Commit Graph

26 Commits

Author SHA1 Message Date
Benjamin Dauvergne b9d5356259 [ID-WSFv1&ID-WSFv2] separate better strings for ID-WSF from other strings
Code in core source file which depend upon ID-WSF symbols have been
conditionalized, and each id-wsf source file now include directly its
need string header.
2010-09-09 01:09:28 +02:00
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
Benjamin Dauvergne 207891ff29 * Fix blanks mismatch (space in *.c and *h files or tabs in *.py files) and formatting 2008-08-05 14:53:29 +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 232294bbaf some error checks and some coding style 2007-09-21 15:12:18 +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 27e9d0edcd data_service_init_query may be called without parameters. 2005-09-10 19:36:33 +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
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 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 de149fd796 Added support of specific service : now Query element can be used by services and inherits their name space. 2004-12-07 11:12:24 +00:00
Nicolas Clapies 71400e454e Updated LassoDstQuery with new snippet feature in class instance. Moved schema comment from .h to .c 2004-12-03 11:10:51 +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