| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
* lasso/Makefile.am:
source dependencies must refer to $(srcdir) in order to pass
distcheck, I forgot to do it in types.c and symbols.sym target
changes.
|
|
|
|
|
|
| |
* lasso/xml/lib_logout_request.c:
immediately return from init_from_query if overloaded parent method
fails.
|
|
|
|
|
|
|
| |
* lasso/saml-2.0/profile.c:
in lasso_saml20_profile_build_redirect_request_msg and
lasso_saml20_profile_build_redirect_response, use new function
lasso_saml20_profile_build_http_redirect.
|
|
|
|
|
|
|
|
| |
* lasso/debug.h:
* lasso/lasso.c:
add a lasso_flag_add_signature flag variable (default to TRUE),
and parsing code to change it from LASSO_FLAG environment variable.
("env LASSO_FLAG=no-add-signature test").
|
|
|
|
|
|
|
| |
* lasso/id-ff/login.c:
add condition upon checking of the InResponseTo field: checks only if
strict checking is activated as it could stop old code using Lasso
from working.
|
|
|
|
|
|
|
|
| |
* lasso/debug.h:
declare lasso_flag_strict_checking global boolean variable.
* lasso/lasso.c:
add parsing for new option called 'strict-checking'.
|
|
|
|
|
|
| |
* lasso/xml/xml.c: use standardized assignment macros (it takes care of
releasing previous valuesm and other peculiarities associated with
safe pointer usage).
|
|
|
|
|
|
|
| |
* lasso/id-ff/profile.c: add tracing code activaged by
LASSO_FLAG=memory-debug to print release of field values.
Complement the existing code in generic deallocation procedure in
LassoNode.
|
|
|
|
|
| |
* lasso/debug.h:
export.h is needed for the LASSO_EXPORT macro.
|
|
|
|
|
|
| |
* lasso/utils.h:
lasso_mem_debug print deallocation message with respect to class and
field.
|
|
|
|
|
|
| |
* lasso/utils.h:
assignment to the temporary variable allow to check for the typing,
do not use lasso_check_type_equality.
|
|
|
|
|
| |
* lasso/utils.h:
macros to assign and release xmlSecKey(s).
|
|
|
|
|
|
| |
* lasso/xml/tools.c:
* lasso/xml/xml.c:
release xmlDoc, properly steal nodes by using xmlSetTreeDoc(xmlnode, NULL);
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/id-ff/defederation.c:
* lasso/id-ff/logout.c:
* lasso/id-ff/profile.c:
* lasso/id-ff/provider.c:
* lasso/id-ff/server.c:
add missings casts, remove useless wrappers
* lasso/id-ff/logout.c:
In lasso_logout_process_request_msg change sequence of "if" for a
"switch".
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/id-ff/provider.c:
* lasso/id-ff/server.c:
* lasso/id-ff/session.c:
use macros to release previous value when necessary,
release object used as parameters to constructors,
free the encryption key associated with a provider,
release the key manager created for a saml signature
verification.
|
|
|
|
|
|
| |
* lasso/id-ff/logout.c (lasso_logout_process_request_msg,
lasso_logout_validate_request): transfer relaystate from request
message to profile field.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/id-ff/logout.c:
- (lasso_logout_build_response_msg, lasso_logout_init_request,
lasso_logout_process_request_msg, lasso_logout_process_response_msg,
lasso_logout_validate_request) use lasso_assign_new_object,
lasso_assign_string, lasso_release and lasso_assign_new_string when
possible.
- (lasso_logout_process_response_msg) move the tranfer of the relaystate
from XML object to profile object.
* lasso/id-ff/defederation.c:
- (lasso_defederation_build_notification_msg,
lasso_defederation_init_notification,
lasso_defederation_process_notification_msg,
lasso_defederation_validate_notification): idem
* lasso/id-ff/lecp.c:
- (lasso_lecp_build_authn_request_envelope_msg,
lasso_lecp_build_authn_request_msg,lasso_lecp_build_authn_response_msg,
lasso_lecp_build_authn_response_envelope_msg) idem
|
|
|
|
|
|
| |
* lasso/id-ff/login.c: (lasso_login_init_authn_request) again a passing by
correction, use lasso_assign_string for copying information from
the request to the profile object.
|
|
|
|
|
|
|
|
| |
* lasso/id-ff/login.c:
- (lasso_login_init_request) catch RelayState in the query_fields and
copy it to msg_relayState
- (lasso_login_process_authn_request_msg) copy RelayState from the
request object to the profile object.
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/xml/saml_assertion.c:
* lasso/xml/samlp_response_abstract.c:
* lasso/xml/samlp_request_abstract.c:
* lasso/xml/saml-2.0/samlp2_request_abstract.c:
* lasso/xml/saml-2.0/saml2_assertion.c:
* lasso/xml/saml-2.0/samlp2_status_response.c:
if a failure occur in the signing process, free the xmlnode, return
NULL and print a warning.
|
|
|
|
|
|
|
|
|
|
| |
* lasso/xml/saml-2.0/samlp2_manage_name_id_request.c,
lasso/xml/saml-2.0/samlp2_manage_name_id_response.c,
lasso/xml/saml-2.0/samlp2_name_id_mapping_request.c,
lasso/xml/saml-2.0/samlp2_name_id_mapping_response.c.
lasso/xml/saml-2.0/samlp2_subject_query_abstract.c:
- remove static variable parent_class
- (class_init) remove intialization of parent_class
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/xml/saml-2.0/samlp2_authn_request.c,
lasso/xml/saml-2.0/samlp2_logout_request.c,
- (instance_init) remove initialization of relayState field
* lasso/xml/saml-2.0/samlp2_logout_response.c:
- (instance_init) remove empty function, since it
only initialized relayState.
- (lasso_samlp2_logout_reponse_get_type) remove instance_init
from the type initialization structure.
* lasso/xml/saml-2.0/samlp2_authn_request.h,
lasso/xml/saml-2.0/samlp2_logout_request.h,
lasso/xml/saml-2.0/samlp2_logout_response.h:
- (struct _LassoSamlp2*) mark relaystate field as deprecated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/xml/saml-2.0/samlp2_status_response.c:
- (init_from_query) remove useless stub code for parsing RelayState
* lasso/xml/saml-2.0/samlp2_response.c,
lasso/xml/saml-2.0/samlp2_name_id_mapping_response.c,
lasso/xml/saml-2.0/samlp2_logout_response.c,
lasso/xml/saml-2.0/samlp2_manage_name_id_response.c, :
- (class_init) remove overloading of init_from_query, use version
from samlp2_status_response instead.
- (init_from_query) Useless so deleted.
* lasso/xml/saml-2.0/samlp2_request_abstract.c:
- (class_init) add overloaded method for init_from_query virtual
method.
- (init_from_query) generic implementation for SAML 2.0 requests
* lasso/xml/saml-2.0/samlp2_subject_query_abstract.c,
lasso/xml/saml-2.0/samlp2_authn_request.c,
lasso/xml/saml-2.0/samlp2_logout_request.c,
lasso/xml/saml-2.0/samlp2_manage_name_id_request.c,
lasso/xml/saml-2.0/samlp2_name_id_mapping_request.c,
lasso/xml/saml-2.0/samlp2_assertion_id_request.c:
- (class_init) remove overloading of init_from_query, use version
from samlp2_request_abstract instead.
- (init_from_query) Useless so deleted.
|
|
|
|
|
|
|
|
| |
lasso_node_init_from_saml2_query_fields
* lasso/xml/xml.c: (lasso_node_init_from_saml2_query_fields) Since parsing
of the relayState is now done inside each "_process_*msg" method of
each SAML2 profile, it is not needed anymore in this function.
|
|
|
|
|
| |
* lasso/xml/xml.c (lasso_node_export_to_query): use lasso own memory
handling macros.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/xml/lib_authn_request.c, lasso/xml/lib_logout_request.c,
lasso/xml/lib_register_name_identifier_request.c,
lasso/xml/lib_status_resposne.c:
- build_query: remove build_query overloaded virtual method, use
LassoNode new generic implementation.
- init_from_query:
- change direct call to lasso_node_init_from_query_fields to use of
base implementation from LassoNode.
- make use of utils.h memory handling macros like
lasso_release_gobject and lasso_assign_string.
* lasso/xml/lib_federation_termination_notification.c:
- init_from_query: remove parsing of RelayState parameter
|
|
|
|
|
| |
* lasso/id-ff/defederation.c: header path should be relative to the
implementation, I will try to do it to most files.
|
|
|
|
|
| |
* lasso/id-ff/defederation.c: get relaystate directly from the query
string using lasso_get_relaystate_from_query.
|
|
|
|
| |
* lasso/id-ff/login.c: changes headers for relatives paths
|
|
|
|
| |
* lasso/errors.c.in: errors.c template contains blanks at end of lines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/saml-2.0/login.c: In
lasso_saml20_login_process_authn_request_msg change handling of
relayState do not rely upon parsing by the node object, but extract
directly from the query string. Use new function
lasso_get_relaystate_from_query.
* lasso/saml-2.0/logout.c: In lasso_saml20_logout_process_request_msg
change handling of relayState do not rely upon parsing by the node
object, but extract directly from the query string.
* lasso/saml-2.0/profile.c: In
lasso_saml20_profile_init_artifact_resolve, add handling of the
relayState transmitted to the assertion consumer URL.
* lasso/saml-2.0/name_id_management.c: In
lasso_name_id_management_process_request_msg change handling of
relayState do not rely upon parsing by the node
object, but extract directly from the query string.
|
|
|
|
|
|
|
|
| |
* lasso/saml-2.0/login.c, lasso/saml-2.0/logout.c,
lasso/saml-2.0/name_id_management.c: simplify code path associated
with generation of the url for the HTTP-Redirect binding using the
rencently introduced function
lasso_saml20_profile_build_http_redirect.
|
|
|
|
| |
* lasso/xml/saml-2.0/samlp2_status_response.c: do it:)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
objects
* lasso/xml/saml-2.0/samlp2_assertion_id_request.c,
lasso/xml/saml-2.0/samlp2_authn_request.c,
lasso/xml/saml-2.0/samlp2_logout_request.c,
lasso/xml/saml-2.0/samlp2_logout_response.c,
lasso/xml/saml-2.0/samlp2_manage_name_id_request.c,
lasso/xml/saml-2.0/samlp2_manage_name_id_response.c,
lasso/xml/saml-2.0/samlp2_name_id_mapping_request.c,
lasso/xml/saml-2.0/samlp2_name_id_mapping_response.c,
lasso/xml/saml-2.0/samlp2_response.c,
lasso/xml/saml-2.0/samlp2_subject_query_abstract.c: remove useless
overloading of build_query virtual method, revert to implementations
in LassoSamlp2RequestAbstract and LassoSamlp2StatusResponse.
|
|
|
|
|
|
| |
* lasso/xml/saml-2.0/samlp2_request_abstract.c: add a build query
overloaded function to LassoSamlp2RequestAbstract class, the base
class of all saml 2.0 request nodes.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/saml-2.0/profile.c, lasso/saml-2.0/profileprivate.h:
- remove_all_signature traverse a tree of LassoNode objects to unset
all signature_type field in on nodes supporting signature
generation.
- lasso_saml20_profile_export_to_query does the job of generateing
the url containing the message content and the relaystate, then
sign it using lasso_query_sign.
- lasso_saml20_profile_build_http_redirect use those two functions
and the metadatas to build the signed redirect url.
|
|
|
|
|
| |
* lasso/xml/private.h, lasso/xml/tools.c: add const modifier to
lasso_concat_url_query arguments.
|
|
|
|
|
| |
* lasso/xml/private.h, lasso/xml/xml.c: remove static modifier to
lasso_node_build_query and export it for use in id-ff profiles.
|
|
|
|
|
| |
* lasso/xml/tools.c, lasso/xml/private.h: new function
lasso_get_relaystate_from_query to help in relaystate handling.
|
|
|
|
|
| |
* lasso/id-wsf/wsf_profile.c, lasso/utils.h, lasso/xml/xml.c: rename
lasso_release_xmlchar to lasso_release_xml_string.
|
|
|
|
|
|
|
|
| |
* lasso/utils.h:
- (lasso_assign_new_string,lasso_assign_gobject) if source parameter
is a function call it could be called two times and have unexpected
side effects. Copy the returned value to a temp variable and use it
instead.
|
|
|
|
|
|
| |
* lasso/utils.h: When setting strings using lasso_assing_string or
lasso_assign_new_string, verify that new string is different than the
target value string before deallocating the target.
|
|
|
|
| |
* initialize local variables.
|
|
|
|
|
|
|
| |
* lasso/xml/xml.c:
In lasso_node_init_from_message_with_format remove direct use of
xmlSecSoap* functions because they emit too much warning by lasso
reimplementations.
|
|
|
|
|
|
| |
* lasso/xml/xml.c:
in lasso_node_new_from_soap, instead of using XPath use function
lasso_xml_get_soap_content.
|
|
|
|
|
| |
* lasso/xml/xml.c:
state the return code type.
|
|
|
|
|
| |
* lasso/xml/xml.c:
remove code for lasso_node_decrypt.
|
|
|
|
|
|
| |
* lasso/xml/xml.c:
change comment about xsi:type handling, we try to honor every
xsi:type.
|
|
|
|
|
| |
* lasso/xml/xml.c:
remove commented code to handle a specific lasso extension.
|
|
|
|
|
| |
* lasso/id-ff/provider.c:
use internal wrapper instead of direct call to libxml for parsing.
|