Print all statements using \r\n so that they will be properly formatted
authorRichard Basch <probe@mit.edu>
Mon, 23 Oct 1995 21:42:43 +0000 (21:42 +0000)
committerRichard Basch <probe@mit.edu>
Mon, 23 Oct 1995 21:42:43 +0000 (21:42 +0000)
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
src/appl/telnet/libtelnet/kerberos5.c

index cb8380f5c6f1ffc3aa97d7f86bfd0840670f01d1..63738b53bf5d0d6ad49fd901f7699ebf48ebdab8 100644 (file)
@@ -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.
index 1488edf0c1217d0cb390fd61b2262ab8b91f1cd6..db9912b6fb0e0af4187353c0114c0f1022877469 100644 (file)
@@ -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",