- (dtucker) [auth-pam.c] Append newlines to lines output by the

pam_chauthtok_conv().
This commit is contained in:
Darren Tucker 2003-11-13 11:21:31 +11:00
parent 418a386f2b
commit 0947ddff72
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
20031113
- (dtucker) [auth-pam.c] Append newlines to lines output by the
pam_chauthtok_conv().
20031106
- (djm) Clarify UsePAM consequences a little more
@ -1397,4 +1401,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.3093 2003/11/06 09:27:51 djm Exp $
$Id: ChangeLog,v 1.3094 2003/11/13 00:21:31 dtucker Exp $

View File

@ -31,7 +31,7 @@
/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
#include "includes.h"
RCSID("$Id: auth-pam.c,v 1.76 2003/10/09 04:20:15 dtucker Exp $");
RCSID("$Id: auth-pam.c,v 1.77 2003/11/13 00:21:32 dtucker Exp $");
#ifdef USE_PAM
#include <security/pam_appl.h>
@ -636,14 +636,14 @@ pam_chauthtok_conv(int n, const struct pam_message **msg,
reply[i].resp_retcode = PAM_SUCCESS;
break;
case PAM_PROMPT_ECHO_ON:
fputs(PAM_MSG_MEMBER(msg, i, msg), stderr);
fprintf(stderr, "%s\n", PAM_MSG_MEMBER(msg, i, msg));
fgets(input, sizeof input, stdin);
reply[i].resp = xstrdup(input);
reply[i].resp_retcode = PAM_SUCCESS;
break;
case PAM_ERROR_MSG:
case PAM_TEXT_INFO:
fputs(PAM_MSG_MEMBER(msg, i, msg), stderr);
fprintf(stderr, "%s\n", PAM_MSG_MEMBER(msg, i, msg));
reply[i].resp_retcode = PAM_SUCCESS;
break;
default: