| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Instad of referring to an old FSF address, point the reader to the FSF
website where the latest licenses and addresses are published.
Signed-off-by: Simo Sorce <simo@redhat.com>
|
| |
|
| |
|
| |
|
|
|
|
| |
This method compare byte strings in constant time.
|
| |
|
|
|
|
| |
[core] make lasso_provider_verify_query_signature use lasso_provider_verify_signature
|
| |
|
|
|
|
|
| |
Too much human errors with strcmp kind of functions. Also change name os
lasso_is_empty_string to lasso_strisempty.
|
|
|
|
| |
It should remove most errors when comparing strings.
|
| |
|
| |
|
|
|
|
|
| |
The method to copy them is xmlCopyNodeList and not xmlCopyNode, so we
need another set of macros.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* lasso_extract_gtype_from_list_or_new will help for method with create
or extend nodes in lists.
|
|
|
|
| |
lasso_release_ghashtable
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* lasso/utils.h: add lasso_trace, which as a printf signature.
* xml/xml.c: add more trace to node initialization code.
|
| |
|
|
|
|
| |
existing family of macros
|
|
|
|
|
|
|
|
|
| |
* lasso/utils.h:
add:
- lasso_assign_new_xml_node
- lasso_assign_new_list_of_strings
- lasso_assign_new_list_of_xml_node
fix lasso_assign_new_list_of_gobjects, bad naming of release macro.
|
|
|
|
|
|
|
|
|
|
| |
* lasso/utils.h:
fix lasso_list_add_xml_node, it must copy the node before assigning
it.
add lasso_list_add_new_xml_node for keeping the old behaviour.
* lasso/xml/xml.c:
fix use of lasso_list_add_xml_node, because copying the node before
assigning it is a leak now.
|
|
|
|
| |
lasso-sections.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/utils.h:
- add macro lasso_ref(object), if object is not null, call
g_object_ref on it, and return the value, otherwise do nothing and
return NULL.
- make a better reporting of bad object release
- change format type for __LINE__ and dest arguments in
lasso_release_gobject warning display.
- add a lasso_check_non_empty_string macro
- add new macro to extract a specific node type from a list of
GObject objects.
- use xmlStrdup not g_strdup for lasso_assign_xml_string
- add lasso_list_add_gstrv and lasso_check_good_rc
- add macro lasso_list_get_first_child
- add inline function to test empty string
- change macro lasso_check_non_empty_string to use the new inline
function and go to cleanup
- fix lasso_check_non_empty_string macro
* lasso/utils.c:
- add lasso_gobject_is_of_type returns 0 if first parameters is a
gobject whose GType is equal to the second parameter, and 1
otherwise.
|
|
|
|
|
|
| |
* lasso/utils.h:
__STRING(x) does not seem more portable than #x so change, problem
with AIX.
|
|
|
|
|
|
|
| |
* lasso/utils.h:
lasso_foreach_full_begin(_type, _data, _iter, _list)
traverse GList* _list, using _iter as iteration variable
extract data field to variable _data of type _type.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* id-ff/session.h: seal public fields.
* id-ff/session.c, id-ff/sessionprivate.h: add accessors for reading
the is_dirty flag and counting store assertions.
* id-ff/logout.c, id-ff/login.c, saml-2.0/login.c, saml-2.0/logout.c,
saml-2.0/profile.c: use the new accessors.
* id-ff/profile.c: include the private header file, use the new
accessors, and remove unnecessary setting of is_dirty to FALSE (it
should be false at instanciation).
* utils.h: add a macro to access private content, prepare for using
G_TYPE_INSTANCE_GET_PRIVATE and the GObject infrastructure for
private structures eventually.
|
|
|
|
|
|
|
| |
* lasso/utils.h:
- rename lasso_unlink_and_release_node to
lasso_release_list_of_xml_node.
- add a GList iteration macro: lasso_foreach.
|
|
|
|
|
| |
* lasso/utils.h:
make lasso_mem_debug output on stderr and not stdout
|
|
|
|
|
|
| |
* lasso/utils.h:
create a temporary varaible to store result of second argument
evaluation to prevent spurious side effects.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/utils.h:
change 'goto exit' for 'goto cleanup'. rename all goto_exit macros to
goto_cleanup_. rename goto_cleanup_if_fail to
goto_cleanup_if_fail_with_rc and add a
goto_cleanup_if_fail for function which do not return an integer
value. add documentation for goto_cleanup macro family.
* lasso/id-ff/login.c:
* lasso/id-ff/provider.c:
* lasso/id-ff/server.c:
* lasso/id-ff/session.c:
* lasso/id-wsf/discovery.c:
* lasso/id-wsf/wsf_profile.c:
* lasso/saml-2.0/profile.c:
* lasso/utils.h:
* lasso/xml/lib_logout_request.c:
* lasso/xml/tools.c:
* lasso/xml/xml.c:
update name of goto_exit_if_fail macros. rename 'exit' labels to
'cleanup'.
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/backward_comp.h:
this header will contain substitue function, defines or types for
compatibility with older versions of dependencies.
* lasso/utils.h:
remove declaration of g_strcmp0
* lasso.c:
* tests/login_tests.c:
use backward_comp.h
|
|
|
|
|
|
|
|
| |
* lasso/utils.h:
if glib is older than 2.16, export g_strcmp0 as part of internal
headers, in order to use it in login_tests.c
* tests/login_tests.c:
include utils.h
|
|
|
|
|
|
| |
* 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/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.
|
|
|
|
|
|
|
|
|
| |
* lasso/utils.h:
this new macro try to extract a field from a structre (or any
left-hand-side value), try to typecheck it using 'LASSO_IS_XXX',
if succesfull, the value is assigned to the variable given as first
argument or we jump to the 'cleanup' goto label, setting the 4th
argument as the current error code (value of variable 'rc').
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lasso/utils.h: added new macros, renamed others:
- macros handling xmlNode are renamed from _node to _xml_node,
- new macros for assign GList* of specific objects:
- lasso_assign_list_of_gobjects,
- lasso_assign_list_of_strings,
- lasso_assign_new_list_of_gobjects,
- macros for assigning xmlChar string (we need a specific macros
because, we must use xmlFree to release the destination string),
- macros to add string without duping: lasso_list_add_xml_string,
- macros to add anything non-null (no type cast):
lasso_list_add_non_null.
|