summaryrefslogtreecommitdiff
path: root/libtac/lib/connect.c
AgeCommit message (Collapse)Author
2016-10-04Make TACDEBUG and TACSYSLOG into varargs macrosPhilip Prindeville
Also, correct the -DTACDEBUG_AT_RUNTIME scenario so that TACDEBUG() binds correct when used in an if-body with an else following it, e.g.: if (test) TACDEBUG(LOG_DEBUG, "test is true"); else return; would previously have ended up as expanding to: if (test) if (tac_debug_enable) logmsg(LOG_DEBUG, "test is true"); else return; with the indent redone to reflect the nesting correctly. This now expands (correctly) to: if (test) do { if (tac_debug_enable) logmsg(LOG_DEBUG, "test is true"); } while (0); else return;
2016-10-04More factoring of the cleanup code for tac_connect_singlePhilip Prindeville
Commit 654b79e removed a very similar check, but with the new common exit strategy for this function, it is in fact possible to have fd be set without having copied fd into retval (i.e. retval still being set to an error value, which is negative).
2016-10-04Exit tac_connect_single consistently via bottom of functionPhilip Prindeville
This is so that tracing is always the same, even when exceptions occur.
2016-07-23Fix warningsPaweł Krawczyk
Fix various declaration inconsistencies that were throwing compiler warnings
2016-05-02retval cannot be negative when fd is positive as it was just copied from fdPaweł Krawczyk
2015-10-26Merge pull request #37 from gollub/fix/connection_timeout_leakPaweł Krawczyk
Avoid socket leaks on connection timeouts
2015-10-09Avoid socket leaks on connection timeoutsDaniel Gollub
... and other not covered error conditions.
2015-08-06tac_connect_single: individual timeoutDaniel Gollub
Allow to configure an individual timeout per TACACS+ server. Bumped SO-version due to API change.
2015-06-29Fix missing semicolonsDavid Stapleton
2015-06-19close socket if any operation failsPaweł Krawczyk
2015-06-18Make socket creation errno verboseDaniel Gollub
2014-10-10Add source addr parameter for tac_connect_singleDaniel Gollub
This allows to specify from which source address/interface the TACACS+ client connection gets initiated. Bump SO-versioning due to API change.
2013-03-28fixes various memory leaks, reallyWalter de Jong
2013-03-28added FIXME remark about leaking memoryWalter de Jong
2013-03-27same thing, but less confusingWalter de Jong
Note that this does not change anything in regards to buffer overflowing
2013-03-27if key is setWalter de Jong
2012-10-02errno = 0 on AIX with non-blocking IO, we need to fix this in aJeroen Nijhof
better way
2012-09-16Rearrange header file include for libtacJeroen Nijhof
2012-07-25tac_encryption fully handled by libtacJeroen Nijhof
2012-03-18Changed e-mail and improved accountingJeroen Nijhof
2011-08-19Finally got rid of all goto illness!Jeroen
2011-08-19Major contribution by Darren BeslerJeroen
2011-04-25Removed encrypt option just check if there is a secret (key).Jeroen
Removed first_hit option because you can get the same behaviour by using only one server. Added multiple secret support, you can now specify different secrets (keys) for different servers. connect.c: improved connection error handling by using getpeername() to check if connection is still valid. This was needed since we are using non-blocking sockets. Properly handle multiple servers when authenticating, patch from Gregg Nemas, thanks!
2010-12-22Initial commitJeroen Nijhof