Re: Reading passwords

From: d. hall (dhall@illusion.apk.net)
Date: 02/09/96


-----BEGIN PGP SIGNED MESSAGE-----

ð thus on Fri, 09 Feb 1996 18:13:13 -0500, Naved virtually scripted...

Naved> In message <Pine.SOL.3.91.960209162200.5893A-100000@plains> you
Naved> said:
>> getpass(3): #include <pwd.h> char *getpass(const char *prompt);

Naved> Almost. From the man page for getpass:

Naved> "The getpass function displays a prompt to, and reads in a password
Naved> from, /dev/tty."

Naved> Not very useful on a network application like a MUD.

check the echo_* functions in comm.c.  this will send the telnet op codes
to turn off echo'ing.  some client like tt and tf use the regexp "assword:"
as a trigger to turn off keyboard echoing until a return is pressed.

d.
- --
Automagically:
  adv. Automatically, but in a way which, for some reason (typically
  because it is too complicated, or too ugly, or perhaps even too
  trivial), I don't feel like explaining to you.
				~ from the jargon file

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Mailcrypt 3.4 for PGP 2.6.2

iQCVAwUBMRvhuoX26urqpgG1AQEYBgP/Si15kU0PnA4sflt3r/0RfX5nC/rNm4E9
/2kKkQCbAolt4jw4w1/LC2y19rgKOBgPoAEgJSj0d1XcV2fm0E1kIX6iH2QSX/1/
1qwmt12/NBs2HDwN3FFfhtpNTExnfRJYPg7XoD8ysa7mG3rrBPmHm512ETIUdxCw
0X5sRi4ghJ0=
=VGv8
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2b30 : 12/07/00 PST