aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
AgeCommit message (Collapse)Author
2011-08-24base64: fix Curl_base64_encode and Curl_base64_decode interfacesYang Tse
Previous interfaces for these libcurl internal functions did not allow to tell apart a legitimate zero size result from an error condition. These functions now return a CURLcode indicating function success or otherwise specific error. Output size is returned using a pointer argument. All usage of these two functions, and others closely related, has been adapted to the new interfaces. Relative error and OOM handling adapted or added where missing. Unit test 1302 also adapted.
2011-07-26stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.hYang Tse
2011-07-24errno.h inclusion conditionally done in setup_once.hYang Tse
2011-05-06Fixed LDAP after RTSP readwrite changeDan Fandrich
2011-05-05SSL: check for SSL, not specific protocolsDaniel Stenberg
Code cleanup to check less for protocols and more for the specific relevant feature. Like if SSL is required.
2011-04-27source cleanup: unify look, style and indent levelsDaniel Stenberg
By the use of a the new lib/checksrc.pl script that checks that our basic source style rules are followed.
2011-04-21Fix a couple of spelling errors in lib/Fabian Keil
Found with codespell.
2011-03-15buildfix: spell define correctlyDaniel Stenberg
2011-03-15ldap: use the new protocol handler setupDaniel Stenberg
Use the new flags field and stop using the old protocol defines.
2010-11-28atoi: remove atoi usageYang Tse
2010-06-04Enable OpenLDAP support for cygwin builds.Yang Tse
Enable OpenLDAP support for cygwin builds. This support was disabled back in 2008 due to incompatibilities between OpenSSL and OpenLDAP headers. cygwin's OpenSSL 0.9.8l and OpenLDAP 2.3.43 versions on cygwin 1.5.25 allow building an OpenLDAP enabled libcurl supporting back to Windows 95. Remove non-functional CURL_LDAP_HYBRID code and references.
2010-06-01fix ldap related compilation issuesYang Tse
2010-05-25LDAP: properly implemented as a curl_handlerHoward Chu
makes the LDAP code much cleaner, nicer and in general being a better libcurl citizen. If a new enough OpenLDAP version is detect, the new and shiny lib/openldap.c code is then used instead of the old cruft Code by Howard, minor cleanups by Daniel.
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2010-02-04fix printf-style format stringsYang Tse
2009-12-30Oops, should have removed 'not' in previous commit.Yang Tse
2009-12-30Replaced stricmp() usage with our portable strequal()Yang Tse
2009-12-17Fix compilation failureYang Tse
2009-12-17Remove pointless storing of the protocol as a string within the connectdataDaniel Stenberg
struct, and instead use the already stored string in the handler struct.
2009-11-18Make usage of calloc()'s arguments consistent with rest of code baseYang Tse
2009-11-02include progress.h for Curl_pgrsSetDownloadCounter function prototypeYang Tse
2009-11-02- As reported independent by both Stan van de Burgt and Didier Brisebourg,Daniel Stenberg
CURLINFO_SIZE_DOWNLOAD (the -w variable size_download) didn't work when getting data from ldap!
2009-10-13Update LDAP URL format referenceYang Tse
2009-04-21libcurl's memory.h renamed to curl_memory.hYang Tse
2009-04-21Moved potential inclusion of system's malloc.h and memory.h header files toYang Tse
setup_once.h. Inclusion of each header file is based on the definition of NEED_MALLOC_H and NEED_MEMORY_H respectively.
2009-03-08Andre Guibert de Bruet fixed a typo in the error messageDaniel Stenberg
2008-12-19- Using the libssh2 0.19 function libssh2_session_block_directions(), libcurlDaniel Stenberg
now has an improved ability to do right when the multi interface (both "regular" and multi_socket) is used for SCP and SFTP transfers. This should result in (much) less busy-loop situations and thus less CPU usage with no speed loss.
2008-10-23moved the Curl_raw_ functions into the new lib/rawstr.c file for easier curlx_Daniel Stenberg
inclusion by the curl tool without colliding with the curl_strequal functions.
2008-10-16Renamed Curl_ascii_equal to Curl_raw_equal and bugfixed the my_toupper functionDaniel Stenberg
used in strequal.c so now all test cases run fine for me again.
2008-10-15- Pascal Terjan filed bug #2154627Daniel Stenberg
(http://curl.haxx.se/bug/view.cgi?id=2154627) which pointed out that libcurl uses strcasecmp() in multiple places where it causes failures when the Turkish locale is used. This is because 'i' and 'I' isn't the same letter so strcasecmp() on those letters are different in Turkish than in English (or just about all other languages). I thus introduced a totally new internal function in libcurl (called Curl_ascii_equal) for doing case insentive comparisons for english-(ascii?) style strings that thus will make "file" and "FILE" match even if the Turkish locale is selected.
2008-08-17libcurl internal base64.h header file renamed to curl_base64.hYang Tse
2007-11-24reqdata doesn't exist anymore and the path moved to the UrlState structDaniel Stenberg
2007-11-05removed space after if and while before the parenthesis for better source codeDaniel Stenberg
consistency
2007-10-17We use this ZERO_NULL to avoid picky compiler warnings,Yang Tse
when assigning a NULL pointer to a function pointer var.
2007-10-12Added per-protocol callback static tables, replacing callback ptr storagePatrick Monnerat
in the connectdata structure by a single handler table ptr.
2007-10-09lber.h needs to be included since ldap.h might not include itYang Tse
2007-10-09added check for MSVC6 standard PSDK and bail out since insufficient for LDAP ↵Gunter Knauf
support with current code.
2007-10-02<winber.h> needed for Windows LDAP client 32 API supportYang Tse
2007-09-15fixed ldap support for winldap.Gunter Knauf
2007-08-25bail out with error if someone tries to use another cert than PEM with OpenLDAP.Gunter Knauf
2007-08-23added support for CA cert verification;Gunter Knauf
default now to verify cert unless data->set.ssl.verifypeer is 0.
2007-08-22Reversed the 'HAVE_LDAP_URL_PARSE' ifdef statement.Gisle Vanem
2007-08-22for now comment the tls_start section...Gunter Knauf
2007-08-20fixed warning with unused var;Gunter Knauf
removed now obsolete defines since we include now ldap headers which define these.
2007-08-20fixed ldaps section for OpenLDAP. Still not working, but at least it ↵Gunter Knauf
compiles now, and should serve as base to get it finally working. Also seems that the ifdefs can be arranged some better because the Solaris and Netscape/iPlanet/Mozilla LDAP SDKs seem to be closer to the Novell section than the OpenLDAP one.
2007-08-16fixed warning about uninitialized.Gunter Knauf
2007-08-16added basic ldaps support; for now its ifdef'd with HAVE_LDAP_SSL unless we ↵Gunter Knauf
know its fully working, and available with all LDAP SDKs. Win32 requires to have the trusted CA in local keystore - I've not found yet a way to disable the cert check.
2007-08-15added ldap_msgfree() to fix memory leak.Gunter Knauf
2007-08-13Removed unused variable.Dan Fandrich
2007-08-13Simplify and rename internal structure to avoid potential name clash with ↵Patrick Monnerat
LDAP header file.