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
ae1f6a297c
* Remove warnings:
...
- remove unused parameter from private function signatures
- remove unused variable
- initialize variable potentially accessed uninitialized
- add G_GNUC_UNUSED if function is public or adhering to an interface, and a
parameter is unused.
- if ID-WSF is not compiled in, define stubs with G_GNUC_UNUSED on parameters.
The goal is to compile with -Werror.
2008-09-12 13:57:22 +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
Frédéric Péters
f4475991cd
fixed comments pointing to the wrong function
2007-11-22 14:46:15 +00:00
Damien Laniel
4fc6657e0c
updated Copyright dates in all files
2007-05-30 17:17:45 +00:00
Frédéric Péters
e636bd0680
new lasso_profile_clean_msg_info function used to clean msg_url and msg_body
...
(free()ing and setting to NULL) in functions where those variables are later
set.
2007-01-05 13:40:07 +00:00
Frédéric Péters
78b83a37b1
misc fixes for 1) memory leaks around XPath usage and 2) potential segfaults
...
from untested pointers
2007-01-03 23:35:17 +00:00
Frédéric Péters
58477d96d8
harmonized LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ and
...
LASSO_PARAM_ERROR_INVALID_VALUE usage
2006-12-28 17:46:32 +00:00
Frédéric Péters
17df2984aa
replaced LASSO_ERROR_UNDEFINED by appropriate error codes in all of xml/ and
...
id-ff/
2006-12-28 10:19:46 +00:00
Frédéric Péters
0808887548
fixed all occurences of returning a negative number unspecified in errors.h
2006-12-27 23:50:15 +00:00
Damien Laniel
6b5d28d703
tests on possibly null pointers
2006-11-02 10:48:31 +00:00
Frédéric Péters
267dd3424a
check for remote provider id before looking it in GHashTable
2006-01-23 15:30:00 +00:00
Frédéric Péters
ebb9f7dffc
SAML 2.0 support (only web-sso for the moment)
2005-11-20 15:38:19 +00:00
Frédéric Péters
1e26b90df9
only use LASSO_SIGNATURE_TYPE_WITHX509 (including a <KeyInfo/> in message) if
...
we have a certificate to use; use LASSO_SIGNATURE_TYPE_SIMPLE otherwise.
2005-03-07 14:16:16 +00:00
Frédéric Péters
6cc0ebee5a
removed all %s escaping sequences from lasso error strings; as a side effect
...
this simplifies critical_error macro, porting to non-gcc compilers should be
easier. Along the way I also fixed the long standing bug #256 .
2005-02-05 16:15:53 +00:00
Frédéric Péters
7a4de405c3
produce 1.1 requests and notifications when interoperating with previous
...
liberty implementations
2005-01-28 13:29:14 +00:00
Emmanuel Raviart
7a03e99b09
Updated Copyright and authors.
2005-01-22 15:57:56 +00:00
Frédéric Péters
d01961c269
documented name_identifier_mapping.c; removed its unused dump functions; fixed
...
a few docstrings
2005-01-20 13:24:04 +00:00
Frédéric Péters
225cb9a6c4
made lasso_profile_set_response_status into a private function
2005-01-12 15:17:10 +00:00
Frédéric Péters
5508882f09
no longer allows NULL to get the first known remote provider id
2005-01-12 14:12:47 +00:00
Frédéric Péters
98b86610af
Reserved space for private_data expansion, so it will be possible to maintain
...
ABI compatibility if changes are needed. Documented some functions (and
switched some destroy to use lasso_node_destroy).
2005-01-10 21:46:39 +00:00
Frédéric Péters
9b444f7796
Removed second and third parameters of lasso_node_dump since @encoding is
...
always UTF-8 and @format is always to indent XML in lasso dumps.
2005-01-01 18:53:30 +00:00
Frédéric Péters
a61cc39269
moved some lasso private functions to new providerprivate.h; insure it is
...
included properly in other files (as well as some sessionprivate.h that were
missing)
2004-12-31 11:51:11 +00:00
Frédéric Péters
e40295bfb8
added refcounting of server to other profiles
2004-12-30 16:47:35 +00:00
Frédéric Péters
07fcdf0c4e
generate xmlsec signatures in get_xmlNode; this should allow envelopes (in
...
LECP) to work properly.
2004-12-28 12:44:22 +00:00
Frédéric Péters
37b04beafb
Added missing declaration for lasso_name_identity_mapping_new_from_dump (and
...
moved dump type to const char*).
2004-12-24 11:44:36 +00:00
Frédéric Péters
2e0efac99e
Moved LassoProfile->nameIdentifier from char* to LassoSamlNameIdentifier*,
...
gaining back access to the nameFormat added late before 0.5.
There are no bindings for LassoSamlNameIdentifier; as a temporary and
compatible measure; profile->nameIdentifier in bindings continues to
return a char* (profile->nameIdentifier->content).
At the same time the same change has been done for
LassoNameRegistration->oldNameIdentifier.
2004-12-18 18:36:54 +00:00
Frédéric Péters
76ec7eb692
(almost) done with errors in ID-FF; remaining "return -1" have been converted
...
to LASSO_ERROR_UNDEFINED (there are forty-three of them).
LASSO_ERROR_UNDEFINED was redefined from -999 to -1 so it is easier to add new
sequences of errros.
2004-12-16 14:04:43 +00:00
Frédéric Péters
501da6b2b6
coherent error handling for "identity not found" and "federation not found"
...
cases.
2004-12-15 10:07:09 +00:00
Frédéric Péters
3ee382c5c6
replaced unknown error by 2 LASSO_PROFILE_ERROR_INVALID_HTTP_METHOD in Name
...
Identifier Mapping profile.
2004-12-14 21:50:12 +00:00
Frédéric Péters
4fe9f93dfa
new LASSO_PROFILE_ERROR_UNKNOWN_PROFILE_URL profile error and replaced a bunch
...
of 'return -1;' with that one.
2004-12-14 21:41:57 +00:00
Frédéric Péters
2bda2b596e
more error code harmony, now with a new critical_error macro
2004-12-14 15:46:25 +00:00
Frédéric Péters
c13df58343
properly verify signatures and return code appriopriately ( closes : #362 )
2004-12-14 13:22:00 +00:00
Frédéric Péters
a5a8ff207f
more error code harmonization.
2004-12-13 18:39:49 +00:00
Frédéric Péters
1f527f033b
harmonized remote_provider tests (check and error code set to
...
LASSO_SERVER_ERROR_PROVIDER_NOT_FOUND)
2004-12-13 17:46:29 +00:00
Frédéric Péters
b04103301a
dealing with errors; now like this:
...
return error_code(G_LOG_LEVEL_CRITICAL, LASSO_SERVER_ERROR_ADD_PROVIDER_FAILED);
2004-12-13 15:23:24 +00:00
Frédéric Péters
92dfd8e1b1
properly sign soap messages in name identifier mapping profile.
2004-12-12 18:27:06 +00:00
Frédéric Péters
d1b99b7bbb
Added back xmlsec signature check (and disabled it in name identifier mapping
...
profile since it is buggy there). The signature check requires another call to
xmlParseMemory; this makes them 3 per SOAP message (sign check +
lasso_profile_get_request_type_from_soap_msg and lasso_node_init_from_message).
I'll think further about this.
2004-12-10 16:13:34 +00:00
Frédéric Péters
6ebc89fdd3
reenabled signature checking on query strings (xml messages still to do)
2004-12-10 00:30:01 +00:00
Frédéric Péters
939697c22d
cut on some line lengths
2004-11-29 16:38:58 +00:00
Frédéric Péters
0cf839190e
cut some long lines
2004-11-26 09:26:52 +00:00
Frédéric Péters
476ec0350c
added error checking on query strings; python tests should now pass
2004-11-22 13:13:16 +00:00
Frédéric Péters
e9279c3acb
cleaning #includes
2004-11-16 15:40:43 +00:00
Frédéric Péters
a31a08d228
renamed lasso/environs/ to lasso/id-ff/
2004-11-15 10:40:37 +00:00
Frédéric Péters
b40dfb2c28
ds:Signature in <samlp:request/> (in login) (and the signature is not verified
...
yet)
2004-10-29 23:06:37 +00:00
Frédéric Péters
f13772d62d
Done with the move to structures and the removal of protocols/ (lasso branched
...
on October 2nd; occasional merges since then).
- Compatible with current souk test suites.
- Missing memory management for everything in xml/
- Missing xmlsec support for SOAP messages.
2004-10-27 09:49:13 +00:00
Emmanuel Raviart
fccd418c36
Integrated scalp_is_liberty_query into Lasso. Consequently,
...
LASSO_PROFILE_ERROR_INVALID_QUERY is now a negative error code and a
critical message is displayed when this error occurs.
2004-10-02 21:49:38 +00:00