aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/sethostname.c
AgeCommit message (Collapse)Author
2012-04-11build adjustments: functionally revert commits 4d3fb91f and bbfe1182Yang Tse
Undefining CURL_HIDDEN_SYMBOLS in source files isn't the proper fix.
2012-04-10libtests: build adjustmentYang Tse
Undefine CURL_HIDDEN_SYMBOLS libcurl private preprocessor macro that might leak from lib/setup.h into source files where this should not be defined.
2011-03-10sources: update source headersDaniel Stenberg
All C and H files now (should) feature the proper project curl source code header, which includes basic info, a copyright statement and some basic disclaimers.
2010-08-08build: libhostname linkage adjustments followupYang Tse
2010-08-07build: allow NTLM tests to run on more build configurationsU-D5B1PQ1J\Administrador
2010-08-02sethostname: provide local prototype for gethostnameDaniel Stenberg
This is only to avoid warnings on some systems.
2010-07-30sethostname: avoid including unistd.h to duck for warningsDaniel Stenberg
2010-07-30sethostname: ISO C does not allow extra `;' outside of a functionDaniel Stenberg
2010-07-30NTLM tests: boost coverage by forcing the hostnameKamil Dudka
A shared library tests/libtest/.libs/lihostname.so is preloaded in NTLM test-cases to override the system implementation of gethostname(). It makes it possible to test the NTLM authentication for exact match, and this way test the implementation of MD4 and DES. If LD_PRELOAD doesn't work, a debug build willl also workk as debug builds are now made to prefer a specific environment variable and will then return that content as host name instead of the actual one. Kamil wrote the bulk of this, Daniel Stenberg polished it.