From e96583b20755c1e81eaf71f63475035d4b132e1b Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Mon, 23 Oct 1995 21:42:43 +0000 Subject: [PATCH] Print all statements using \r\n so that they will be properly formatted when binary mode is being used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6985 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/libtelnet/kerberos.c | 4 ++-- src/appl/telnet/libtelnet/kerberos5.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/appl/telnet/libtelnet/kerberos.c b/src/appl/telnet/libtelnet/kerberos.c index cb8380f5c..63738b53b 100644 --- a/src/appl/telnet/libtelnet/kerberos.c +++ b/src/appl/telnet/libtelnet/kerberos.c @@ -167,7 +167,7 @@ kerberos4_send(ap) CREDENTIALS cred; int r; - printf("[ Trying KERBEROS4 ... ]\n"); + printf("[ Trying KERBEROS4 ... ]\r\n"); if (!UserNameRequested) { if (auth_debug_mode) { printf("Kerberos V4: no user name supplied\r\n"); @@ -377,7 +377,7 @@ kerberos4_reply(ap, data, cnt) auth_send_retry(); return; case KRB_ACCEPT: - printf("[ Kerberos V4 accepts you ]\n"); + printf("[ Kerberos V4 accepts you ]\r\n"); if ((ap->way & AUTH_HOW_MASK) == AUTH_HOW_MUTUAL) { /* * Send over the encrypted challenge. diff --git a/src/appl/telnet/libtelnet/kerberos5.c b/src/appl/telnet/libtelnet/kerberos5.c index 1488edf0c..db9912b6f 100644 --- a/src/appl/telnet/libtelnet/kerberos5.c +++ b/src/appl/telnet/libtelnet/kerberos5.c @@ -482,14 +482,14 @@ kerberos5_reply(ap, data, cnt) case KRB_ACCEPT: if ((ap->way & AUTH_HOW_MASK) == AUTH_HOW_MUTUAL && !mutual_complete) { - printf("[ Kerberos V5 accepted you, but didn't provide mutual authentication! ]\n"); + printf("[ Kerberos V5 accepted you, but didn't provide mutual authentication! ]\r\n"); auth_send_retry(); return; } if (cnt) - printf("[ Kerberos V5 accepts you as ``%.*s'' ]\n", cnt, data); + printf("[ Kerberos V5 accepts you as ``%.*s'' ]\r\n", cnt, data); else - printf("[ Kerberos V5 accepts you ]\n"); + printf("[ Kerberos V5 accepts you ]\r\n"); auth_finished(ap, AUTH_USER); #ifdef FORWARD if (forward_flags & OPTS_FORWARD_CREDS) @@ -508,7 +508,7 @@ kerberos5_reply(ap, data, cnt) if (r = krb5_rd_rep(telnet_context, auth_context, &inbuf, &reply)) { - printf("[ Mutual authentication failed: %s ]\n", + printf("[ Mutual authentication failed: %s ]\r\n", error_message(r)); auth_send_retry(); return; @@ -527,7 +527,7 @@ kerberos5_reply(ap, data, cnt) return; #ifdef FORWARD case KRB_FORWARD_ACCEPT: - printf("[ Kerberos V5 accepted forwarded credentials ]\n"); + printf("[ Kerberos V5 accepted forwarded credentials ]\r\n"); return; case KRB_FORWARD_REJECT: printf("[ Kerberos V5 refuses forwarded credentials because %.*s ]\r\n", -- 2.26.2