]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
auth-pam: Add debugging information when we receive PAM messages
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 17 Oct 2023 02:35:17 +0000 (04:35 +0200)
committerDarren Tucker <dtucker@dtucker.net>
Sun, 15 Feb 2026 18:58:28 +0000 (13:58 -0500)
auth-pam.c

index 3192323d9d5e8103f5ca6509bc40e97645737498..1a5604690f330209e62fcca08a23a2a515d9f84b 100644 (file)
@@ -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",