summaryrefslogtreecommitdiff
path: root/src/util/util.c
AgeCommit message (Collapse)AuthorFilesLines
2013-06-07Move domain_to_basedn outside IPA subtreeJakub Hrozek1-0/+35
The utility function will be reused to guess search base from the base DN of AD trusted domains.
2013-01-10Add function to safely wipe memory.Simo Sorce1-0/+9
This is useful for wiping passwords, as it prevents the compiler from optimizing out a memset to zero before a free()
2013-01-02failover: Protect against empty host namesMichal Zidek1-91/+70
Added new parameter to split_on_separator that allows to skip empty values. The whole function was rewritten. Unit test case was added to check the new implementation. https://fedorahosted.org/sssd/ticket/1484
2012-11-21MONITOR: Fix off-by-one error in add_string_to_listJakub Hrozek1-1/+4
We need to allocate num_services+2 - one extra space for the new service and one for NULL.
2012-11-14Add string_in_list() and add_string_to_list() with testsSumit Bose1-0/+63
string_in_list() and add_string_to_list() are two utilities for NULL terminated strings arrays. add_string_to_list() adds a new string to an existing list or creates a new one with the strings as only item if there is not list. string_in_list() checks if a given string is in the list. It can be used case sensitive or in-sensitive.
2012-08-23Fix: IPv6 address with square brackets doesn't work.Michal Zidek1-0/+23
https://fedorahosted.org/sssd/ticket/1365
2012-04-20Move atomic io function to a separate moduleJakub Hrozek1-38/+0
We'll be using it on various places of the SSSD. The function is in its own file to allow using just the one piece without having to drag in the whole util.c module.
2012-04-20sss_atomic_io: Do not fail reads with EPIPE if there is not enough data to readJakub Hrozek1-1/+2
Also adds a unit test for sss_atomic_io()
2012-02-26UTIL: Add function for atomic I/OJan Cholasta1-0/+39
2012-01-23Move sized_string declaration to utilsStephen Gallagher1-0/+11
2011-12-16sss_utf8_tolower utility function+unit testsJakub Hrozek1-0/+1
2011-11-02Fix size return for split_on_separator()Stephen Gallagher1-1/+1
It was returning the size of the array, rather than the number of elements. (The array was NULL-terminated). This argument was only used in one place that was actually working around this odd return value.
2011-07-11Move IP adress escaping from the LDAP namespaceJakub Hrozek1-0/+8
2011-06-15Make parse_args skip extra spacesJakub Hrozek1-16/+24
https://fedorahosted.org/sssd/ticket/871
2010-12-20Introduce sss_hash_create_ex()Sumit Bose1-6/+19
2010-12-14Add missing break statement to sss_hash_createStephen Gallagher1-0/+1
https://fedorahosted.org/sssd/ticket/720
2010-11-15Add utility function to sanitize LDAP/LDB filtersStephen Gallagher1-0/+52
Also adds a unit test.
2010-10-08Add common hash table setupStephen Gallagher1-0/+53
sss_hash_create() produces a dhash table living in the talloc hierarchy.
2010-08-03Add dup_string_list() utility functionStephen Gallagher1-0/+31
2010-08-03Add diff_string_lists utility functionStephen Gallagher1-0/+196
Includes a unit test
2010-05-27Move parse_args() to utilSumit Bose1-0/+99
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+138
Also update BUILD.txt