kfw: Draw default ccache principal name in bold

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: don't use lstrcpy on an ANSI string.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: Expired tickets display italicized 'Expired'

...in 'valid until' and 'renewable until' columns.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
DO NOT PUSH: disable UAC check; always enable mslsa ccache

We will want something like this behaviour to allow uac-limited access to
mslsa.  Should be able to get r/w access to service tickets and write-only
access to tgt.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fixup: use BaseFont, not BoldFont for valid ticket
valid/renewable_until time display.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: fix leak in cci_os_ipc_thread_init()

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
Replace __func__ with __FUNCTION__ in lib/gssapi/krb5/disp_status.c

...for MSVC compatibility

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
include stdlib.h and, conditionally, crtdbg.h in win-mac.h

Allows leak-tracking using built-in msvc tools on windows.
crtdbg.h needs to come _after_ stdlib.h, but _before_ checking for
strdup.  Define DEBUG and CRTDBG_MAP_ALLOC for the full monty.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
Don't try to use syslog / LOG_DEBUG when they don't exist

This works, but probably would be 'better' to introduce a HAVE_SYSLOG
and/or syslog replacement.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
Rename 'free' member of fn_info 'free_func' in asn1_encode.h/asn1_encode.c

MSVC memory tracking tools do '#define free(p) _dbg_free(...)'.  sigh.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: fix leaks in KrbListTickets.cpp

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: Display 'valid until' and 'renewable until' as time remaining

Also, fix minor leak on shutdown.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: fix tooltips; replace "import ticket" btn with "auto-import" checkbox.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fixup: LeashKRB5ListDefaultTickets initialization

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
Implement cccol iterators for mslsa and switch_to stub.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
bugfix: use %i, not %s to Tprintf GetLastError()

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: print "Unknown" for currently-unreadable MSLSA tgt timestamps

Eventually we should fix the MSLSA ccache to allow timestamps to be read
even though the tgt session key is unreadable.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
DO NOT PUSH: add DEBUG and CRTDBG_MAP_ALLOC to KFW_FLAGS in win-pre.in

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: add leak tracking support to leash

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: update ribbon tooltip text

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>