summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-01-31 10:50:49 +1100
committerDamien Miller <djm@mindrot.org>2001-01-31 10:50:49 +1100
commitbf75776d415126a415ac92fb767c70dc67feba4f (patch)
treeac0483c36737d48e5a58c9be36a2687ce0e27002
parent709528ab6a271ce39155fc494d40689f578f9d38 (diff)
- (djm) Don't log SSH2 PAM KbdInt responses to debug, they may contain
passwords.
-rw-r--r--ChangeLog2
-rw-r--r--auth2-pam.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0e854e2f1..7ac2bf354 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
6 - (djm) Fix autoconf logic for --with-lastlog=no Report and diagnosis from 6 - (djm) Fix autoconf logic for --with-lastlog=no Report and diagnosis from
7 Philipp Buehler <lists@fips.de> and Kevin Steves <stevesk@sweden.hp.com> 7 Philipp Buehler <lists@fips.de> and Kevin Steves <stevesk@sweden.hp.com>
8 respectively. 8 respectively.
9 - (djm) Don't log SSH2 PAM KbdInt responses to debug, they may contain
10 passwords.
9 11
1020000130 1220000130
11 - (djm) OpenBSD CVS Sync: 13 - (djm) OpenBSD CVS Sync:
diff --git a/auth2-pam.c b/auth2-pam.c
index c54ad31a2..d7a5ff7a4 100644
--- a/auth2-pam.c
+++ b/auth2-pam.c
@@ -1,5 +1,5 @@
1#include "includes.h" 1#include "includes.h"
2RCSID("$Id: auth2-pam.c,v 1.6 2001/01/22 05:34:40 mouring Exp $"); 2RCSID("$Id: auth2-pam.c,v 1.7 2001/01/30 23:50:49 djm Exp $");
3 3
4#ifdef USE_PAM 4#ifdef USE_PAM
5#include <security/pam_appl.h> 5#include <security/pam_appl.h>
@@ -152,7 +152,6 @@ input_userauth_info_response_pam(int type, int plen, void *ctxt)
152 for (i = 0; i < nresp; i++) { 152 for (i = 0; i < nresp; i++) {
153 int j = context_pam2.prompts[i]; 153 int j = context_pam2.prompts[i];
154 resp = packet_get_string(&rlen); 154 resp = packet_get_string(&rlen);
155 debug("response ssh-%d(pam-%d) = \"%s\"", i, j, resp);
156 context_pam2.responses[j].resp_retcode = PAM_SUCCESS; 155 context_pam2.responses[j].resp_retcode = PAM_SUCCESS;
157 context_pam2.responses[j].resp = xstrdup(resp); 156 context_pam2.responses[j].resp = xstrdup(resp);
158 xfree(resp); 157 xfree(resp);