Commit Graph

363 Commits

Author SHA1 Message Date
Benjamin Dauvergne 699f0e42d5 [misc] apply changes to remove warning blocking compilation with gcc 4.5.2 and php 5.3.5
- gcc now warns when you compate a typedef to the anonymous enum which
   define it.
 - some inline function in the zend.h header do compare between signed
   and unsigned char.
2011-11-21 22:10:12 +01:00
Benjamin Dauvergne 265f69e236 [bindings python] configure basic logging 2011-01-04 16:42:10 +01:00
Benjamin Dauvergne 433ebd9a99 [ghashtable] add G_GNUC_UNUSED to remove unused static functions warning 2011-01-04 16:39:34 +01:00
Benjamin Dauvergne 03b15e3886 [bindings perl] fix get_hash_of_objects 2011-01-04 13:34:51 +01:00
Benjamin Dauvergne e3a035ba6a [bindings php5] remove hardcoding the php5 cli interpreter
The test script did fail under Centos/Fedora because the interpreter for
php5 is named php.
2011-01-04 11:16:00 +01:00
Benjamin Dauvergne 9bfd555cda [bindings perl] downgrade requirement on perl version to 5 instead of 5.10 2010-12-22 17:35:14 +01:00
Benjamin Dauvergne cd6262bbd7 [binding php5] add inline implementation of lasso_log since it is a private function of lasso 2010-12-14 15:19:54 +01:00
Benjamin Dauvergne 762f88cd37 [bindings python] make constructor failure raise a lasso.Error exception 2010-12-14 01:52:31 +01:00
Benjamin Dauvergne f4c6c96836 [bindings perl] change ghashtable interface to not use GHashTableIter 2010-12-01 15:20:48 +01:00
Benjamin Dauvergne fbf7ad0537 [bindings perl] add dependency upon the Makefile.perl for the install target 2010-12-01 15:16:23 +01:00
Benjamin Dauvergne 33dcd98bc5 [bindings] add missing static modifier for g_hash_table_get_values replacement 2010-11-17 19:38:12 +01:00
Benjamin Dauvergne d6b1288923 [bindings] fix bad use of lasso_return_if_fail in ghashtable backward compatibility header 2010-11-15 17:04:46 +01:00
Benjamin Dauvergne d9bc35e01a [Binding java] replace use of strcmp by g_strcmp0 2010-10-01 15:29:42 +02:00
Benjamin Dauvergne c02711bf79 [Bindings] change prefix for ignoring soap_binding related files 2010-09-30 11:21:09 +02:00
Benjamin Dauvergne 5f7a08acb3 [Bindings] restore presence of SOAP nodes
The node to exclude when ID-WSF is disactivated was soap_binding_ ones.
2010-09-29 15:56:59 +02:00
Benjamin Dauvergne 35ff3d6950 [Strings] add string constant for the internal XML attributes used in dumps
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*.
2010-09-03 19:02:37 +02:00
Benjamin Dauvergne 341cc7247b [Binding perl] move DISCLEANFILES and CLEANFILES outside of the condition clauses 2010-07-21 14:01:29 +00:00
Benjamin Dauvergne 6b86aa67ef [Bindings] improve cleaning and distribution buiding 2010-07-21 13:56:49 +00:00
Benjamin Dauvergne 2d9a2ec35f [Tests java] remove Test.java
Local test file wrongly commited.
2010-07-21 13:56:45 +00:00
Benjamin Dauvergne 6ae30da50b [Binding perl] add DISTCLEANFILES for Makefile.perl.old file 2010-07-21 13:56:42 +00:00
Benjamin Dauvergne d19f5700c3 [Tests] adapt java unit tests to new semantic for list fields
GList fields now return an empty list, not null.
2010-07-20 15:46:03 +00:00
Benjamin Dauvergne 52d9fba0fa [Binding perl] fix broken distclean-local target
The TOCOPY files need to be cleaned only for out of source directory
builds.
2010-07-20 14:15:53 +00:00
Benjamin Dauvergne 19372c88c1 [Binding java] return empty list for NULL GList value, not null 2010-07-16 19:34:33 +00:00
Benjamin Dauvergne 950565e5a2 [Tests/python] add test case for WebSSO with providers using encrypted keys 2010-07-16 19:34:18 +00:00
Benjamin Dauvergne f3c56a1039 [Bindings] make is_rc only check for lasso_error_t type 2010-07-12 14:09:10 +00:00
Benjamin Dauvergne 553814f90c [Bindings php5] simplify is_object in php_code.py 2010-07-12 14:09:09 +00:00
Benjamin Dauvergne 07cf66e143 [Bindings java] use is_int instead of custom methods or code 2010-07-12 14:09:03 +00:00
Benjamin Dauvergne a3675cd7b2 [Bindings perl] add lasso_errot_t to type to map to T_IV typemap (integer types) 2010-07-12 14:09:02 +00:00
Benjamin Dauvergne 9ba548d6a0 [Bindings] add lasso_error_t to return code types 2010-07-12 14:09:00 +00:00
Benjamin Dauvergne f38c42de0f [Binding java] use is_rc to match error return type 2010-07-12 14:08:59 +00:00
Benjamin Dauvergne 0a955e18d5 [Binding php5] use is_rc to match error return type 2010-07-12 14:08:58 +00:00
Benjamin Dauvergne 3aec6e5902 [Core] add lasso_error_t to list of integer types 2010-07-12 14:08:57 +00:00
Benjamin Dauvergne eca31dd63c [Python binding] do not throw lasso.Error for python exceptions 2010-07-05 21:24:08 +00:00
Benjamin Dauvergne 11ac1e148a [Perl binding] make include from $(srcdir) works in Perl binding 2010-06-29 14:49:15 +00: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 f27fa8171a [ID-WSF2] add idwsf2 test script to test suite
Re-activate ID-WSF 2.0 test script. Fix problem with provider issuing
assertion role. Need to be fixed more generally in the future.
2010-06-29 14:15:01 +00:00
Benjamin Dauvergne c1a4ba2fc0 Merge branch 'issue-88' 2010-06-29 09:15:02 +00:00
Benjamin Dauvergne 6f617027e9 Merge branch 'issue-86' 2010-06-29 09:15:00 +00:00
Benjamin Dauvergne 751d02ed4d Comment out custom silent rules if automake < 1.11 2010-06-15 11:33:01 +00:00
Benjamin Dauvergne bf2274f20d Test: add non regression test for reloading a server dump with encrypted keys 2010-06-14 21:21:29 +00:00
Benjamin Dauvergne 900a8008c4 Binding python: fix freeing of list return values for methods with the transfer full flag
The output 'print' were missing, oups :(
2010-06-14 21:21:25 +00:00
Benjamin Dauvergne fbb0ef52ee Binding python: find a work around for random behaviour of PyImport_ImportModule
* it seems that PyImport_ImportModule is not deterministic. Sometimes it
   returns True for modules which we know are present ('logging').
   Importing 'sys' first seems to make 'logging' accessible (complete
   cargo cult programming).
2010-06-12 00:43:51 +00:00
Benjamin Dauvergne a9b673cd4a Core: move logging function and macros to their own module, adapt perl binding 2010-06-12 00:43:49 +00:00
Benjamin Dauvergne 88862b11b0 Test: add python test for attribute requesting
* What's tested:
  - request initialization
  - adding attribute designators
  - building the request message
  - processing the request message
  - accepting the request
  - adding assertion with attributes
  - signing the assertion
  - building the response
  - parsing the response
2010-06-12 00:43:24 +00:00
Benjamin Dauvergne 94377b822f Binding python: fix bad refcounting in get_logger and lasso_python_log 2010-06-12 00:42:58 +00:00
Benjamin Dauvergne b6bdb0d33e Tests: new python test for setEncryptionPrivateKeyWithPassword 2010-06-10 13:38:08 +00:00
Benjamin Dauvergne 72361f16b3 Binding python: if lasso.logger exists use it for logging
* There is now two paths to get a logger in the python binding:
   - first try to get an objet from lasso.logger
   - if it doesn't exist or is None, the try logging.getLogger('lasso')
2010-06-10 07:58:14 +00:00
Benjamin Dauvergne 9078ad41fd Binding python: call lasso_init() first in init_lasso() 2010-06-09 16:54:52 +00:00
Benjamin Dauvergne 05b537876b Binding python: add GLog handler to redirect logs to Python logger named "lasso"
* fixes #20
2010-06-09 16:54:50 +00:00
Frédéric Péters 4c130d779a Add new lasso_log_set_handler and lasso_log_remove_handler functions
They are modeled around the g_log... functions of GLib, they just don't
have a domain parameter.
2010-06-09 07:51:52 +00:00