From ac94494b871b7f9c702103681fe9f0830f2a1a12 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 1 Dec 2006 16:40:46 +0000 Subject: [PATCH] * src/appl/telnet/libtelnet/kerberos5.c (kerberos5_send): Conditionalize debugging printfs. ticket: 4941 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18892 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/libtelnet/kerberos5.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/appl/telnet/libtelnet/kerberos5.c b/src/appl/telnet/libtelnet/kerberos5.c index 9761f6dd9..1ef6fbace 100644 --- a/src/appl/telnet/libtelnet/kerberos5.c +++ b/src/appl/telnet/libtelnet/kerberos5.c @@ -249,7 +249,8 @@ kerberos5_send(ap) } memset((char *)&creds, 0, sizeof(creds)); - printf("calling krb5_sname_to_principal\n"); + if (auth_debug_mode) + printf("telnet: calling krb5_sname_to_principal\n"); if ((r = krb5_sname_to_principal(telnet_context, RemoteHostName, "host", KRB5_NT_SRV_HST, &creds.server))) { @@ -257,7 +258,8 @@ kerberos5_send(ap) printf("telnet: Kerberos V5: error while constructing service name: %s\r\n", error_message(r)); return(0); } - printf("done calling krb5_sname_to_principal\n"); + if (auth_debug_mode) + printf("telnet: done calling krb5_sname_to_principal\n"); if (telnet_krb5_realm != NULL) { krb5_data rdata; -- 2.26.2