summaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2010-06-14make include guard names consistent throughout the source and avoid ↵Arthur de Jong
conflicts with system headers git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1140 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-06-12remove commented out memberOf and ipNetmaskNumber attributes and small cleanupsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1138 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-05-13make logging of buffer checks consistentArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1104 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-02-27fix typoArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1068 ef36b2f9-881f-0410-afb5-c4e39611909c
2009-12-28implement attribute mapping using shell-like expressionsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1041 ef36b2f9-881f-0410-afb5-c4e39611909c
2009-12-28WRITE_STRINGLIST(): properly handle the case where the list is null (result ↵Arthur de Jong
of change in r1028) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1037 ef36b2f9-881f-0410-afb5-c4e39611909c
2009-12-13change dict and set API to perform loops with a list of strings instead of ↵Arthur de Jong
loop_first() and loop_next() functions git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1028 ef36b2f9-881f-0410-afb5-c4e39611909c
2009-10-07fix the case where the string passed to WRITE_STRING() is an expressionArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@999 ef36b2f9-881f-0410-afb5-c4e39611909c
2009-08-31rename software to nss-pam-ldapdArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@978 ef36b2f9-881f-0410-afb5-c4e39611909c
2009-05-29remove unneeded EXTRA_DISTArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@905 ef36b2f9-881f-0410-afb5-c4e39611909c
2009-05-29refactor protocol reading and writing macros to the common directory, use ↵Arthur de Jong
more logical names and in the PAM module no longer use NSS status codes (import of r887 from nss-pam-ldapd) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@904 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-06-12restore the old writing code which masks SIGPIPE on platforms that can't use ↵Arthur de Jong
send() git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@758 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-06-06miscellaneous portability improvementsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@742 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-05-17use send() with a flag to ignore SIGPIPE instead of write() so we don't have ↵Arthur de Jong
to muck with signal handlers git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@740 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-05-16add sanity checks to sleep calls to never sleep too long (problems could ↵Arthur de Jong
occur when the clock moves backwards) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@738 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-04-23fix problem where first item in the hashtable could be returned twice while ↵Arthur de Jong
looping git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@694 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-04-21allocate room for key string just after entry to save on calls to malloc() ↵Arthur de Jong
and make it simpler git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@691 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-04-19fix wrapping and indenting of commentsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@684 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-04-19implement a set that uses the dict module as back-endArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@681 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-04-19implement new dict module that uses a hashtable which is around 40 times ↵Arthur de Jong
faster for large (around 2000) entries but with around 40% more memory used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@680 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-04-17add note about freed valuesArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@676 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-04-17change dict_values_first() and dict_values_next() into dict_loop_first() and ↵Arthur de Jong
dict_loop_next() to have a looping mechanism over keys and values git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@675 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-02-15split out the flushing of the buffers to separate functions and see if we ↵Arthur de Jong
can flush some data from the buffer if it is overflowing before growing the buffer git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@635 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-02-12implement resizable I/O buffers and tune buffer sizes to normal requestsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@630 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-02-12always allocate the read and write buffers and make the struct tio_buffer ↵Arthur de Jong
inline in struct tio_fileinfo git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@629 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-01-27when including stdint.h check if we actually have itArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@571 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-01-01add limited implementation of tio_mark() and tio_reset() functions to do ↵Arthur de Jong
limited seeks in the read stream, clean up header file comments and write tests for new code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@547 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-12-01simple check for validity of key value in dict_put()Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@482 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-27fix memory leak in I/O module not free()ing allocated storage for file info ↵Arthur de Jong
on file close git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@462 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-27portability improvement to fall back to ETIMEDOUT when ETIME is unavailableArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@461 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-10-19fix usage of DEBUG_TIO_STATSArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@440 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-24also initialize sa_sigaction although it's not usedArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@423 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-23some small improvements to the code based on some source code checksArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@418 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-21just use -fPIC on all files in this directoryArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@411 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-07-23fix a serious bug in dict_values_next() that would return map pointers ↵Arthur de Jong
instead of values and write a test for it git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@315 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-07-23add support for removing entries from a DICT by setting the value to NULL ↵Arthur de Jong
(this does not free any memory) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@313 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-07-15fix typoArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@306 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-07-15fix bug with buffer magic in writing codeArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@305 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-07-13add const and add FIXME about a to-be-fixed race conditionArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@301 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-06-17support building outside the source directoryArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@289 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-06-12fix casts of types where neededArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@285 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-06-11move dict into the common directoryArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@279 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-06-10compile tio module with -fPIC because it is used in the NSS shared libraryArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@277 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-06-09remove some trailing spacesArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@274 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-06-08implement our own stdio-like library that handles IO with a simple ↵Arthur de Jong
configurable timeout mechanism with buffering git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@272 ef36b2f9-881f-0410-afb5-c4e39611909c