9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Vadim Antonov avg@postman.ncube.com
Subject: FTPD plaintext password option
Date: Thu, 17 Aug 1995 03:13:25 -0400	[thread overview]
Message-ID: <19950817071325.SgWh0PYhHZYk7KLcJz9_AnbuM18n2qUa6PdSGi1tK1k@z> (raw)


Few changes, to provide the same functionality
as -P in telnetd.

--vadim

cpu% pwd
/sys/src/cmd/service
cpu% diff ftp.c.old ftp.c
125a126
> int   plaintext;
169a171,173
>       case 'P':
>               plaintext = 1;
>               break;
471c475,476
<       return reply("331 encrpyt challenge, %s, as a password", ch.chal);
---
>       return reply(plaintext? "331 Your password, please?" :
>                    "331 Encrypt challenge, %s, as a password", ch.chal);
479a485,486
>       char key[DESKEYLEN];
>
485c492,497
<               return reply("531 Send user id before encrypted challenge");
---
>               return reply("531 Send user id before password");
>       if(plaintext) {
>               passtokey(key, response);
>               strcpy(response, ch.chal);
>               netcrypt(key, response);
>       }
cpu%






                 reply	other threads:[~1995-08-17  7:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19950817071325.SgWh0PYhHZYk7KLcJz9_AnbuM18n2qUa6PdSGi1tK1k@z \
    --to=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).