summaryrefslogtreecommitdiff
path: root/libtac/include
AgeCommit message (Collapse)Author
2016-12-12Allow building with run-time debugging enabled (via configure)Philip Prindeville
Add --enable-runtime-debugging option to ./configure. Add example logmsg() to tacc.c so it can be built with debugging. Fix logmsg() prototype (it's supposed to match the prototype of syslog() which returns void). Export build-time value of --enable-runtime-debugging into libtac.pc.
2016-11-11Fix ASCII logins where 2 transactions are requiredPhilip Prindeville
authenticate() doesn't handle the case of an ASCII login which results in a continue request being required to complete the transaction.
2016-10-05Merge pull request #65 from pprindeville/simplify-md5-operationsPaweł Krawczyk
Various cryptography improvements
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-04Don't compute pad all at once when we can compute it incrementallyPhilip Prindeville
This saves us having to marshall data and allocate a buffer for the entire pad (bitstream cipher). We only need it in blocks of 16 bytes (the size of the MD5 digest), so let's compute it piecemeal as we need it. This has the added benefit of avoiding any calls to malloc() which might be result in system calls (i.e. sbrk() to extend the heap).
2016-10-04No need to pass in payload length when the header already includes itPhilip Prindeville
Why make copies of the payload length to pass as parameters when it's already present in the header?
2016-07-23source formattingPaweł Krawczyk
2016-07-23check for max number of arguments passed in replyPaweł Krawczyk
2016-07-23Fix warningsPaweł Krawczyk
Fix various declaration inconsistencies that were throwing compiler warnings
2016-05-27fix variable namesPaweł Krawczyk
2016-05-27max packet sizePaweł Krawczyk
2016-03-25Password change support for TACACS+Ben Schumacher
Allow pam_tacplus to do challenge/response authentication for TAC backends that force password change during authentication flow. Also add support for password change via 'passwd' by implementing pam_sm_chauthtok. Amongst other things, this requires explicitly managing the sequence number for compatability with some versions of Cisco ACS.
2015-08-06tac_connect_single: individual timeoutDaniel Gollub
Allow to configure an individual timeout per TACACS+ server. Bumped SO-version due to API change.
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-29xstrcpy() belongs in libtacWalter de Jong
2013-03-29removed double xcalloc() function; do not leak memory for these small ↵Walter de Jong
buffers; added safe xstrcpy()
2013-03-28fixes various memory leaks, reallyWalter de Jong
2013-03-28server is a struct { address, key }Walter de Jong
2013-03-28just them prototypesWalter de Jong
2013-03-28more stuff belongs in headersWalter de Jong
2012-09-16Rearrange header file include for libtacJeroen Nijhof
2012-09-08Bumped version to 1.3.8 and renamed rem_addr to r_addrJeroen Nijhof
2012-03-18Changed e-mail and improved accountingJeroen Nijhof
2011-08-20Added _pam_get_rhost() and _pam_get_user()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