From 206bb51cbc46d49f82fdc9dbbb5823e674c7ad07 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sat, 20 Nov 1999 05:11:47 +0000 Subject: [PATCH] make hide_password the default --- pppd/pppd.8 | 12 +++++++++--- pppd/upap.c | 6 ++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/pppd/pppd.8 b/pppd/pppd.8 index 94c5ca0..582d071 100644 --- a/pppd/pppd.8 +++ b/pppd/pppd.8 @@ -1,5 +1,5 @@ .\" manual page [] for pppd 2.3 -.\" $Id: pppd.8,v 1.49 1999/11/17 03:49:56 paulus Exp $ +.\" $Id: pppd.8,v 1.50 1999/11/20 05:11:47 paulus Exp $ .\" SH section heading .\" SS subsection heading .\" LP paragraph @@ -292,7 +292,7 @@ to the peer. This option is privileged. .TP .B hide-password When logging the contents of PAP packets, this option causes pppd to -exclude the password string from the log. +exclude the password string from the log. This is the default. .TP .B holdoff \fIn Specifies how many seconds to wait before re-initiating the link after @@ -735,7 +735,9 @@ rather than a specific terminal device. Pppd will allocate itself a pseudo-tty master/slave pair and use the slave as its terminal device. The \fIscript\fR will be run in a child process with the pseudo-tty master as its standard input and output. An explicit -device name may not be given if this option is used. +device name may not be given if this option is used. (Note: if the +\fIrecord\fR option is used in conjuction with the \fIpty\fR option, +the child process will have pipes on its standard input and output.) .TP .B receive-all With this option, pppd will accept all control characters from the @@ -773,6 +775,10 @@ Handshake Authentication Protocol] authentication. Require the peer to authenticate itself using PAP [Password Authentication Protocol] authentication. .TP +.B show-password +When logging the contents of PAP packets, this option causes pppd to +show the password string in the log message. +.TP .B silent With this option, pppd will not transmit LCP packets to initiate a connection until a valid LCP packet is received from the peer (as for diff --git a/pppd/upap.c b/pppd/upap.c index 4e5c045..7e5f0d5 100644 --- a/pppd/upap.c +++ b/pppd/upap.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: upap.c,v 1.22 1999/11/15 01:51:53 paulus Exp $" +#define RCSID "$Id: upap.c,v 1.23 1999/11/20 05:11:47 paulus Exp $" /* * TODO: @@ -31,7 +31,7 @@ static const char rcsid[] = RCSID; -static bool hide_password; +static bool hide_password = 1; /* * Command-line options. @@ -39,6 +39,8 @@ static bool hide_password; static option_t pap_option_list[] = { { "hide-password", o_bool, &hide_password, "Don't output passwords to log", 1 }, + { "show-password", o_bool, &hide_password, + "Show password string in debug log messages", 0 }, { "pap-restart", o_int, &upap[0].us_timeouttime, "Set retransmit timeout for PAP" }, { "pap-max-authreq", o_int, &upap[0].us_maxtransmits, -- 2.39.2