Commit Graph

11 Commits

Author SHA1 Message Date
Benjamin Dauvergne d9bc35e01a [Binding java] replace use of strcmp by g_strcmp0 2010-10-01 15:29:42 +02:00
Benjamin Dauvergne 3534792285 [Bindings] accept simple string in string<->xmlNode converter
Some use case ask for passing simple libxml content node (i.e just an
UTF-8 string) when a method argument or a field of the xmlNode* type.
This commit add a static method in bindings/utils.c named
lasso_string_fragment_to_xmlnode which does this transform by trying to
parse an XML document then by trying to parse a well balanced XML
fragment of only one node (if there is more than one node such as in the
string " xxx <tag/> yyy ", we free the node list and return NULL).
2010-06-29 14:15:08 +00:00
Benjamin Dauvergne 0c67831f55 Bindings: use lasso_return_xxx macros instead of GLib ones 2010-02-01 19:50:09 +00:00
Benjamin Dauvergne 8f527b1eb6 Bindings java: use utils.py methods, make set_hash_of_objects more robust 2010-01-28 15:32:03 +00:00
Benjamin Dauvergne 986a32f10a Fix uninitialized local variable
- bindings/java/wrapper_top.c: (gobject_to_jobject_and_ref) initialize
   local variable.
2008-11-14 10:52:34 +00:00
Benjamin Dauvergne 0d66367f28 Remove use of xmlFreeDoc for lasso_release_doc
- bindings/java/wrapper_top.c, bindings/php4/lasso_php4_helper.c,
    bindings/php5/wrapper_source_top.c, bindings/python/wrapper_top.c,
    lasso/id-ff/identity.c, lasso/id-ff/lecp.c, lasso/id-ff/login.c,
    lasso/id-ff/logout.c, lasso/id-ff/name_registration.c,
    lasso/id-ff/profile.c, lasso/id-ff/provider.c, lasso/id-ff/server.c,
    lasso/id-ff/session.c, lasso/id-wsf-2.0/data_service.c,
    lasso/id-wsf/data_service.c, lasso/id-wsf/discovery.c,
    lasso/id-wsf/wsf_profile.c, lasso/saml-2.0/ecp.c,
    lasso/saml-2.0/login.c, lasso/saml-2.0/name_id_management.c,
    lasso/utils.h, lasso/xml/tools.c, lasso/xml/xml.c, swig/Lasso.i:
    Remove use of xmlFreeDoc. Use lasso_release_doc instead.
2008-11-04 01:58:49 +00:00
Benjamin Dauvergne 152ec6d42e Many fix to compile with --enable-wsf and --enable-debugging and also to
remove valgrind errors through python tests.

1. Rename lasso_wsf_profile_new_full for java bindings (cannot subclass
   in overrides of static methods).
2. Add const modifiers to many functon signatures in
   bindings/python/wrapper_top.c.
3. add initialisation of private_data->encryption_sym_key_type (to
   please valgrind) in instance_init of LassoProvider.
4. Add new macro to assign xmlNode, we consider xmlNode to be an
   immutable value, and always use xmlCopyNode for assignment. The
   macros is called named lasso_assign_node.
5. Fix segfault, when using xmlSec to encrypt the newly created
   encrypted node replace the original node inside the xmlDoc structure,
   and the original node is freed automatically. So you cannot borrow
   the encrypted if you do not remove it from xmlDoc first.
2008-09-23 09:13:09 +00:00
Benjamin Dauvergne 9ed0670e48 * Remove ending blanks 2008-09-12 15:06:58 +00:00
Benjamin Dauvergne f83d4bd9f8 * fix typo with g_hash_table_remove_all
* remove unused variable
* add GNUC_UNUSED to static functions to pass -Werror
2008-08-05 14:53:22 +00:00
Benjamin Dauvergne 9406c648c5 use new util function to throw exceptions 2008-08-05 14:53:12 +00:00
Benjamin Dauvergne 1226b060bd Move all files related to java into the java subdirectory 2008-08-05 14:53:03 +00:00