From: Marco Trevisan (TreviƱo) Date: Tue, 17 Oct 2023 02:35:17 +0000 (+0200) Subject: auth-pam: Add debugging information when we receive PAM messages X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b0e50b4132679f0c09c0f1272bf1c45959103ea;p=thirdparty%2Fopenssh-portable.git auth-pam: Add debugging information when we receive PAM messages --- diff --git a/auth-pam.c b/auth-pam.c index 3192323d9..1a5604690 100644 --- a/auth-pam.c +++ b/auth-pam.c @@ -417,6 +417,9 @@ sshpam_thread_conv(int n, sshpam_const struct pam_message **msg, break; case PAM_ERROR_MSG: case PAM_TEXT_INFO: + debug3("PAM: Got message of type %d: %s", + PAM_MSG_MEMBER(msg, i, msg_style), + PAM_MSG_MEMBER(msg, i, msg)); if ((r = sshbuf_put_cstring(buffer, PAM_MSG_MEMBER(msg, i, msg))) != 0) fatal("%s: buffer error: %s",