[tac_plus] Debugging output cleanup
Philp Prindeville
philipp at redfish-solutions.com
Fri Aug 12 23:48:43 UTC 2016
This fixes the following things:
* dump characters as 2 hex digits, even if high nibble is zero;
* when displaying hash inputs, consistently show session_id in network
byte order;
* dump hash (and prev_hash) on one line, rather than 1 byte per line;
* remove extraneous newline
* use open_memstream() to avoid strcat()'s, and other buffer-to-buffer
copies;
* don't reinvent the printf-wheel. use vfprintf() instead;
Running it here locally.
-Philip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tacacs-debugging.patch
Type: text/x-patch
Size: 6596 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/tac_plus/attachments/20160812/f9334cb7/attachment.bin>
More information about the tac_plus
mailing list