Benjamin Dauvergne
553814f90c
[Bindings php5] simplify is_object in php_code.py
2010-07-12 14:09:09 +00:00
Benjamin Dauvergne
2468e0a421
[Core] change return type of all error returning methods
...
The new return type is lasso_error_t, it should allow to pinpoint easily
methods returning an error code in bindings.
2010-07-12 14:09:07 +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
a7204adb88
[Core] add a lasso_error_t typedef
...
This typedef will serve to mark error returning methods.
The ctypes.h header piggyback on export.h to be included in all public
headers.
2010-07-12 14:08:55 +00:00
Benjamin Dauvergne
7352ec8036
[Provider] Fix loading of provider without a public key
...
This commit also emit propre warning when loading fails for a provider
*with* a public key.
2010-07-05 21:27:08 +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
2e9e814b09
[Core] add macro to release an xmlNodeList object
2010-06-29 14:15:02 +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
4a36e6d065
[Core] add macro to release GList of xmlNodeList
2010-06-29 14:14:59 +00:00
Benjamin Dauvergne
0524051343
[Core] add macros to manipulate xmlNodeList and GList of xmlNodeList
...
The method to copy them is xmlCopyNodeList and not xmlCopyNode, so we
need another set of macros.
2010-06-29 14:14:58 +00:00
Benjamin Dauvergne
129e7ac6ea
Merge branch 'issue-101'
2010-06-29 09:15:06 +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
d9d4e6ae38
[Tests/integration] add G_DEBUG=gc-friendly env. var to valgrind-wrapper
...
It should improve valgrind ability to trace memory origin.
2010-06-18 08:05:55 +00:00
Benjamin Dauvergne
ef36d5cad3
[XML] in lasso_node_export_to_paos_request check return value of lasso_node_get_xmlNode
2010-06-17 11:42:45 +00:00
Benjamin Dauvergne
eac190160c
[XML] in _lasso_node_export_to_base64 check return value of lasso_node_export_to_xml
2010-06-17 11:42:43 +00:00
Benjamin Dauvergne
8c46b3dd58
[XML] in _lasso_node_export_to_xml check return value of lasso_node_get_xmlNode
2010-06-17 11:42:41 +00:00
Benjamin Dauvergne
751d02ed4d
Comment out custom silent rules if automake < 1.11
2010-06-15 11:33:01 +00:00
Benjamin Dauvergne
8dd38b7746
[Core] do not ignore keep_xmlnode flag inherited from parent classes
...
We only looked to the keep_xmlnode flag in the node data of the top
level class, but any parent class can set this flag and in this case we
must honor it too.
2010-06-15 11:33:00 +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
c1902b7d7e
Core: when reloading a dump, use the signing private key password for loading the encryption private key
...
We currently do not store the encryption private key, instead on reload
of a dump, we try to use the signing private key as the encryption
private key. But we forgot to use the stored private key password.
That's now fixed.
Next step would be to keep the encryption private key around also.
2010-06-14 21:21:27 +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
c4ac4f652c
Core: move lasso_strerror declaration to errors.h
2010-06-12 00:43:43 +00:00
Benjamin Dauvergne
d4551542c6
add .gitignore file
2010-06-12 00:43:35 +00:00
Benjamin Dauvergne
b773217b54
Tools: add check-makefile.sh script to tools
2010-06-12 00:43:31 +00:00
Benjamin Dauvergne
477e6896a9
add abi file for 2.2.91
2010-06-12 00:43:29 +00:00
Benjamin Dauvergne
bcb0d7f91b
Tests: add idp6-saml2 data
2010-06-12 00:43:27 +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
49deb1ffcb
SAMLv2: rename lasso_saml2_name_id_build_persistent to lasso_saml2_name_id_new_with_persistent_format
...
* keep the old one for compatibility
* new one will be picked by bindings as a constructor
2010-06-12 00:43:20 +00:00
Benjamin Dauvergne
c7539efbe0
SAMLv2: when initializing signture on assertion, setup an ID if there is none
...
* without the ID lasso refuse to sign (it's mandatory)
2010-06-12 00:43:14 +00:00
Benjamin Dauvergne
601aadbf8f
SAMLv2: in lasso_assertion_query_build_request_msg setup nameid
...
* lasso_profile_get_nameIdentifier does not return profile->nameIdentifier
,
so we first try to use profile->nameIdentifier and if it is NULL we use
lasso_profile_get_nameIdentifier.
2010-06-12 00:43:09 +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
93bea17474
Core: update lasso_iso_8601_gmt_to_time_t to support milliseconds
...
* We now support the two possible formats for xsdtime XSchema datatype:
- dddd-dd-ddTdd:dd:ddZ
- dddd-dd-ddTdd:dd:dd.d*Z
Where d denotes a digit, and * is the kleene star.
XSD datetime also supports negative years, but as we cannot represent
them with time_t, we can reject it at the lexical level.
2010-06-10 21:26:10 +00:00
Benjamin Dauvergne
ad081094e9
Documentation: add new AssertionQuery methods to documentation
2010-06-10 21:26:06 +00:00
Benjamin Dauvergne
b6bdb0d33e
Tests: new python test for setEncryptionPrivateKeyWithPassword
2010-06-10 13:38:08 +00:00
Benjamin Dauvergne
2f7723348d
Fix long lines in lasso/id-ff/server.c
2010-06-10 13:38:05 +00:00
Benjamin Dauvergne
0986fa439a
Core: add method lasso_server_set_encryption_private_key_with_password
...
* fixes #91 .
2010-06-10 13:38:02 +00:00
Benjamin Dauvergne
c6fa47127e
SAMLv2: add new methods to class LassoAssertionQuery
...
* lasso_assertion_query_add_attribute_request:
helper to setup request attribute for AttributeQuery messages.
* lasso_assertion_query_get_request_type:
method to find the type of the last received query.
* fixes #90
2010-06-10 13:38:00 +00:00
Benjamin Dauvergne
e69cbabde1
SAMLv2: fix initialization of subject in lasso_assertion_query_build_request_msg
2010-06-10 13:37:58 +00:00
Benjamin Dauvergne
d0a2135f60
Import tools in utils.h
2010-06-10 13:37:56 +00:00
Benjamin Dauvergne
779200ca4c
Fix collision between defined symbols in tools.h and private.h
2010-06-10 13:37:53 +00:00