conditionalize krb_enable_debug
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6345 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
10
appl/kx/kx.c
10
appl/kx/kx.c
@@ -619,8 +619,10 @@ doit_v5 (const char *host, int port, const char *user,
|
|||||||
|
|
||||||
#ifdef KRB4
|
#ifdef KRB4
|
||||||
static int use_v4 = 0;
|
static int use_v4 = 0;
|
||||||
|
#ifdef HAVE_KRB_ENABLE_DEBUG
|
||||||
static int krb_debug_flag = 0;
|
static int krb_debug_flag = 0;
|
||||||
#endif
|
#endif /* HAVE_KRB_ENABLE_DEBUG */
|
||||||
|
#endif /* KRB4 */
|
||||||
#ifdef KRB5
|
#ifdef KRB5
|
||||||
static int use_v5 = 0;
|
static int use_v5 = 0;
|
||||||
#endif
|
#endif
|
||||||
@@ -637,9 +639,11 @@ struct getargs args[] = {
|
|||||||
#ifdef KRB4
|
#ifdef KRB4
|
||||||
{ "krb4", '4', arg_flag, &use_v4, "Use Kerberos V4",
|
{ "krb4", '4', arg_flag, &use_v4, "Use Kerberos V4",
|
||||||
NULL },
|
NULL },
|
||||||
|
#ifdef HAVE_KRB_ENABLE_DEBUG
|
||||||
{ "krb4-debug", 'D', arg_flag, &krb_debug_flag,
|
{ "krb4-debug", 'D', arg_flag, &krb_debug_flag,
|
||||||
"enable krb4 debugging" },
|
"enable krb4 debugging" },
|
||||||
#endif
|
#endif /* HAVE_KRB_ENABLE_DEBUG */
|
||||||
|
#endif /* KRB4 */
|
||||||
#ifdef KRB5
|
#ifdef KRB5
|
||||||
{ "krb5", '5', arg_flag, &use_v5, "Use Kerberos V5",
|
{ "krb5", '5', arg_flag, &use_v5, "Use Kerberos V5",
|
||||||
NULL },
|
NULL },
|
||||||
@@ -727,7 +731,7 @@ main(int argc, char **argv)
|
|||||||
if (!passive_flag)
|
if (!passive_flag)
|
||||||
passive_flag = check_for_passive (getenv("DISPLAY"));
|
passive_flag = check_for_passive (getenv("DISPLAY"));
|
||||||
|
|
||||||
#ifdef KRB4
|
#if defined(HAVE_KERNEL_ENABLE_DEBUG)
|
||||||
if (krb_debug_flag)
|
if (krb_debug_flag)
|
||||||
krb_enable_debug ();
|
krb_enable_debug ();
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user