* FTPD plaintext password option
@ 1995-08-17 7:13 Vadim
0 siblings, 0 replies; only message in thread
From: Vadim @ 1995-08-17 7:13 UTC (permalink / 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%
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-08-17 7:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-08-17 7:13 FTPD plaintext password option Vadim
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).