summaryrefslogtreecommitdiffstats
path: root/bindings/java
Commit message (Collapse)AuthorAgeFilesLines
* [java] try to make test works under Mac Os XBenjamin Dauvergne2011-05-301-3/+3
|
* [Binding java] replace use of strcmp by g_strcmp0Benjamin Dauvergne2010-10-011-1/+2
|
* [Strings] add string constant for the internal XML attributes used in dumpsBenjamin Dauvergne2010-09-031-1/+1
| | | | | | | | | Add string constants for signature method, signature type, private key (file path or content), private key password and certificate (file path or content). Add cast for xmlChar constant strings definition in python bindings, it assumed all constant strings were char*.
* [Bindings] improve cleaning and distribution buidingBenjamin Dauvergne2010-07-211-0/+2
|
* [Tests java] remove Test.javaBenjamin Dauvergne2010-07-211-11/+0
| | | | Local test file wrongly commited.
* [Tests] adapt java unit tests to new semantic for list fieldsBenjamin Dauvergne2010-07-201-6/+6
| | | | GList fields now return an empty list, not null.
* [Binding java] return empty list for NULL GList value, not nullBenjamin Dauvergne2010-07-161-1/+1
|
* [Bindings java] use is_int instead of custom methods or codeBenjamin Dauvergne2010-07-121-5/+2
|
* [Binding java] use is_rc to match error return typeBenjamin Dauvergne2010-07-121-2/+2
|
* [Bindings] accept simple string in string<->xmlNode converterBenjamin Dauvergne2010-06-291-11/+4
| | | | | | | | | | 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).
* Comment out custom silent rules if automake < 1.11Benjamin Dauvergne2010-06-151-0/+2
|
* Bindings: keep retro compatibility for member field namesBenjamin Dauvergne2010-06-061-2/+25
| | | | | | | * Special kludge price go to PHP: methods name are insensitive so nothing to do here, BUT, if you use getters/setters then your objects fields can be case insensitive too ;-) (DNS, dns, DnS, dNs all maps to get_dns ).
* Bindings java: do not mask errors from the code generatorBenjamin Dauvergne2010-03-021-1/+1
|
* Binding java: Makefile.am has multiple target rules, it cannot support ↵Benjamin Dauvergne2010-02-041-0/+2
| | | | parallel builds
* Bindings: use lasso_return_xxx macros instead of GLib onesBenjamin Dauvergne2010-02-011-36/+36
|
* Bindings: make binding generation more silentBenjamin Dauvergne2010-02-011-5/+12
| | | | | | | | * bindings/java/Makefile.am bindings/perl/Makefile.am bindings/php5/Makefile.am bindings/python/Makefile.am: use AM_V_GEN, or similar variable for all steps of binding generation, normal output can be activated with the V=1 argument to the 'make' command.
* Binding java: use eager evalutation to get list of sources filesBenjamin Dauvergne2010-02-011-1/+1
| | | | | | * bindings/java/Makefile.am: use := to provoke eager evaluation so that java-list mode is not called many times.
* Bindings java: use utils.py methods, make set_hash_of_objects more robustBenjamin Dauvergne2010-01-282-264/+267
|
* Bindings: java, php5, python simplify logic in binding generatorBenjamin Dauvergne2010-01-281-7/+11
| | | | | | * use utils.h macros to manipulate fields. * use utils.py function to filter variables, argument and return types. * finish support of hashtables of strings for php5 and python.
* Bindings java: cast return value of special constructorsBenjamin Dauvergne2010-01-251-1/+1
| | | | | | | * bindings/java/lang.py: in the JAVA API special constructors are made to return their real type, but usual GObject constructors return their base type (here LassoNode) so we have to cast it.
* Bindings: add support for time_t to bindings, add support for 'string' type ↵Benjamin Dauvergne2010-01-121-2/+2
| | | | for list in java binding
* Bindings: simplify GList handlingBenjamin Dauvergne2010-01-041-28/+30
|
* Bindings: in bindings.py, parse '(in)' gobject-introspection annotation, in ↵Benjamin Dauvergne2010-01-041-6/+7
| | | | | | | | | | utils.py, use it to reverse default annotation for pointer of pointers Bindings: in bindings.py, improve regular expression for declarations Bindings: parse gobject-introspection annotation in return value documentation, add cast to C calls when parameter type is const in java binding, problem arise with const char ** arrays
* Bindings: make the binding infrastructure understand GObject-introspections ↵Benjamin Dauvergne2010-01-041-15/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | annotations * bindings/bindings.py * bindings/utils.py: add convenience function to treat arguments tuple: (type,name,{annotations}). introduce new argument options, fix that arguments are 3-tuple of the form (type,name,annotations), where annotations is a dictionary. Key of this dictionnary can be: - optional, wheter the argument is necessary, it means it has a default value. - out, means that the pointer is a pointer of pointer, for bindings that can return exceptions, it will be returned instead of the integer error code, the only way to access error codes will be exceptions. - element-type, contained type of a list or an array, - key-type, value-type, type of respectively the key and value of a GHashTable. - transfer, wheter a the callee(for arguments)/caller(for return values) owns the values passed, it can be none,container(if the callee/caller only owns the container not the contained value) or full. doc.parameters is now a 3-tuple of (attribute-name, attribute-description, attribute-annotations) where attribute-annotations is a string of the form '(option1)(option2 option-arguments) etc.'. - add predicates for xml, list and time_t values. improve predicates for cstring and const modifier. * bindings/overrides.xml: 'out' arguments are not well supported for java, so skip functions using them. * bindings/java/lang.py bindings/php5/php_code.py bindings/php5/wrapper_source.py bindings/python/lang.py: - update language specifig binding generators for handling new annotations. - improve python method declaration, handle optional arguments with default values, factorize this chode in two methods, get_python_arg_decl and defval_to_python_value. * bindings/python/tests/Makefile.am bindings/python/tests/idwsf1_tests.py bindings/python/tests/idwsf2_tests.py: make test work with out of source build dir.
* Bindings: add support for gucharBenjamin Dauvergne2009-09-111-2/+2
| | | | | | * bindings/java/lang.py: * bindings/python/lang.py: add guchar to list of C types everywhere.
* Fix build issues on amd64 / gcc 4.3Jerome Schneider2009-04-091-1/+1
| | | | | | | | | * bindings/java/lang.py: fix cast issue * bindings/python/wrapper_top.c fix type issue * lasso/registry.c fix cast issue
* Bindings: fix documentation parsingBenjamin Dauvergne2009-03-271-3/+0
| | | | | | | | * bindings/bindings.py: fix regex to match documentation (remove condition terminating on '**/') print error messages to stderr. * bindings/java/lang.py: remove commented debugging code
* Java: add assertionsBenjamin Dauvergne2009-01-241-1/+2
| | | | | * bindings/java/tests/LoginTest.java: add assertion for the return code of lasso_logout_process_request_msg.
* Fix uninitialized local variableBenjamin Dauvergne2008-11-141-1/+1
| | | | | - bindings/java/wrapper_top.c: (gobject_to_jobject_and_ref) initialize local variable.
* Remove use of xmlFreeDoc for lasso_release_docBenjamin Dauvergne2008-11-041-1/+2
| | | | | | | | | | | | | | - 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.
* Clean generated files in bindingsBenjamin Dauvergne2008-11-041-1/+5
| | | | | | | | * bindings/java/Makefile.am: * bindings/php5/Makefile.am: * bindings/python/Makefile.am: - reformat value and add generated files to the MOSTLYCLEANFILES variable
* add functionality to enable debugging flags at runtimeBenjamin Dauvergne2008-10-011-2/+0
| | | | | | | | | | | | | | | | | | | | | | 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.
* Many fix to compile with --enable-wsf and --enable-debugging and also toBenjamin Dauvergne2008-09-231-15/+21
| | | | | | | | | | | | | | | | | | 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.
* * Remove ending blanksBenjamin Dauvergne2008-09-122-32/+32
|
* * When --enable-debugging is used, add -Wno-xxx options to AM_CFLAGS so thatBenjamin Dauvergne2008-09-121-3/+5
| | | | bindings compile with -Werror (-Werror is activated by --enable-debugging now)
* Add bindings/javaj/__init__.py to EXTRA_DISTBenjamin Dauvergne2008-08-051-0/+1
|
* * Fix blanks mismatch (space in *.c and *h files or tabs in *.py files) and ↵Benjamin Dauvergne2008-08-051-9/+9
| | | | formatting
* * fix typo with g_hash_table_remove_allBenjamin Dauvergne2008-08-051-42/+43
| | | | | * remove unused variable * add GNUC_UNUSED to static functions to pass -Werror
* add an __init__.py to make the java subdirectory a python moduleBenjamin Dauvergne2008-08-051-0/+0
|
* use new util function to throw exceptionsBenjamin Dauvergne2008-08-052-5/+18
|
* add moved files to EXTRA_DISTBenjamin Dauvergne2008-08-051-1/+4
|
* Move all files related to java into the java subdirectoryBenjamin Dauvergne2008-08-054-1/+1686
|
* add Makefile.in to MAINTAINERCLEANFILES in every Makefile.amBenjamin Dauvergne2008-05-271-0/+1
|
* fix INCLUDES var, put top_builddir firstBenjamin Dauvergne2008-05-261-1/+2
|
* [project @ fpeters@0d.be-20080423145930-yekpmusph6oob90d]Frederic Peters2008-04-291-0/+6
| | | | | | | | merge Original author: Frederic Peters <fpeters@0d.be> Date: 2008-04-23 16:59:30.377000+02:00
* [project @ fpeters@0d.be-20080326094754-cw66nuog62q06ekk]Frederic Peters2008-04-291-1/+1
| | | | | | | merging benjamin branch Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-26 10:47:54.384000+01:00
* [project @ fpeters@0d.be-20080325172346-eitu3onvzps4b30z]Frederic Peters2008-04-291-3/+7
| | | | | | | | merging benjamin stuff and adding --enable-id-wsf when id-wsf is asked Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-25 18:23:46.535000+01:00
* [project @ fpeters@0d.be-20080314231256-hjz1wljuqrcbuce3]Frederic Peters2008-04-294-45/+49
| | | | | | | | merging benjamin branch Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-15 00:12:56.228000+01:00
* [project @ fpeters@0d.be-20080310093300-2iv41ihnuify54po]Frederic Peters2008-04-293-25/+26
| | | | | | | merging benjamin branch Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-10 10:33:00.592000+01:00
* [project @ fpeters@0d.be-20080309152828-pw4gd3lcm7rb7dxd]Frederic Peters2008-04-294-31/+24
| | | | | | | | merging benjamin branch Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-09 16:28:28.854000+01:00