summaryrefslogtreecommitdiff
path: root/tacc.c
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-12-03Merge pull request #77 from pprindeville/fix-tacc-ttyjeroennijhof
Add option to specify modem port, etc.
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-17Add option to specify modem port, etc.Philip Prindeville
Extracting the tty name or port name from the controlling terminal of a Unix process is a questionable assumption. Further, for automated testing, you might want the reproducibility of being able to explicitly set the terminal name. To get the same functionality as before, one can pass in "tacc ... -y `tty`" as an extra argument.
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-09-29Turn on stricter compiler warningsPhilip Prindeville
And fix subsequent warnings caused by: - shadowed variables (i.e. variables existing in nested scopes); - signed vs. unsigned comparisons - string pointers and buffers being unsigned which don't need to be; - unnecessary casts; - unused variables (or only used when debugging is enabled);
2016-07-23source formattingPaweł Krawczyk
2016-07-23terminate tac_login bufferPaweł Krawczyk
2016-07-23it's not Python...Paweł Krawczyk
2016-07-23added support to set the tac_login global variablePaweł Krawczyk
2016-05-27fix variable namesPaweł Krawczyk
2016-05-04help text formattingPaweł Krawczyk
2016-05-04actually send the configured service and protocolPaweł Krawczyk
2016-05-04make service and protocol required parametersPaweł Krawczyk
2016-05-03add TACACS+ client utility programPaweł Krawczyk