diff options
| author | Tom Yu <tlyu@mit.edu> | 2011-12-12 20:46:24 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 2011-12-12 20:46:24 +0000 |
| commit | 5fa98cdabb89a772e138c9e68b475f33458c8ef0 (patch) | |
| tree | ec972dd2b136cc1fa869c161fe68da9aac3d4258 /src/windows/leash/Leash.cpp | |
| parent | db0db11147deb5767cccb46820401c2754a7ed16 (diff) | |
| download | krb5-5fa98cdabb89a772e138c9e68b475f33458c8ef0.tar.gz krb5-5fa98cdabb89a772e138c9e68b475f33458c8ef0.tar.xz krb5-5fa98cdabb89a772e138c9e68b475f33458c8ef0.zip | |
kfw leash: add -console option to create console for debug output
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7050
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25570 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/leash/Leash.cpp')
| -rw-r--r-- | src/windows/leash/Leash.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/windows/leash/Leash.cpp b/src/windows/leash/Leash.cpp index 88ee7356a..1f12e913e 100644 --- a/src/windows/leash/Leash.cpp +++ b/src/windows/leash/Leash.cpp @@ -26,6 +26,7 @@ #include "mitwhich.h" #include <leasherr.h> #include "lglobals.h" +#include "out2con.h" #include <krb5.h> #include <com_err.h> @@ -305,6 +306,11 @@ BOOL CLeashApp::InitInstance() { autoInit = TRUE; } + else if (0 == stricmp(optionParam+1, "console") || + 0 == stricmp(optionParam+1, "c")) + { + CreateConsoleEcho(); + } else { MessageBox(hMsg, @@ -312,6 +318,7 @@ BOOL CLeashApp::InitInstance() "'-renew' or '-r' to perform ticket renewal (and exit)\n" "'-destroy' or '-d' to perform ticket destruction (and exit)\n" "'-autoinit' or '-a' to perform automatic ticket initialization\n" + "'-console' or '-c' to attach a console for debugging\n" "'-ms2mit' or '-import' or '-m' to perform ticket importation (and exit)", "Leash Error", MB_OK); return FALSE; |
