Lines Matching +refs:msg +refs:debug

79 # define PAM_MSG_MEMBER(msg, n, member) ((*(msg))[(n)].member)  argument
81 # define PAM_MSG_MEMBER(msg, n, member) ((msg)[(n)]->member) argument
370 debug("PAM: num PAM env strings %u", num_env); in import_environments()
392 sshpam_thread_conv(int n, sshpam_const struct pam_message **msg, in sshpam_thread_conv() argument
420 switch (PAM_MSG_MEMBER(msg, i, msg_style)) { in sshpam_thread_conv()
424 PAM_MSG_MEMBER(msg, i, msg))) != 0) in sshpam_thread_conv()
428 PAM_MSG_MEMBER(msg, i, msg_style), buffer) == -1) in sshpam_thread_conv()
446 PAM_MSG_MEMBER(msg, i, msg))) != 0) in sshpam_thread_conv()
450 PAM_MSG_MEMBER(msg, i, msg_style), buffer) == -1) in sshpam_thread_conv()
613 sshpam_null_conv(int n, sshpam_const struct pam_message **msg, in sshpam_null_conv() argument
623 sshpam_store_conv(int n, sshpam_const struct pam_message **msg, in sshpam_store_conv() argument
639 switch (PAM_MSG_MEMBER(msg, i, msg_style)) { in sshpam_store_conv()
643 PAM_MSG_MEMBER(msg, i, msg))) != 0) in sshpam_store_conv()
670 debug("PAM: cleanup"); in sshpam_cleanup()
673 debug("PAM: closing session"); in sshpam_cleanup()
678 debug("PAM: deleting credentials"); in sshpam_cleanup()
717 debug("PAM: initializing for \"%s\" with service \"%s\"", user, in sshpam_init()
740 debug("PAM: setting PAM_RHOST to \"%s\"", sshpam_rhost); in sshpam_init()
767 debug("PAM: setting PAM_TTY to \"ssh\""); in sshpam_init()
851 char *msg; in sshpam_query() local
868 (r = sshbuf_get_cstring(buffer, &msg, &mlen)) != 0) in sshpam_query()
876 strlcpy(**prompts + plen, msg, len - plen); in sshpam_query()
879 free(msg); in sshpam_query()
887 strlcpy(**prompts + plen, msg, len - plen); in sshpam_query()
891 free(msg); in sshpam_query()
909 free(msg); in sshpam_query()
917 debug("PAM: %s", **prompts); in sshpam_query()
936 free(msg); in sshpam_query()
942 error("PAM: %s for %s%.100s from %.100s", msg, in sshpam_query()
949 free(msg); in sshpam_query()
1084 debug("%s: called", __func__); in do_pam_account()
1114 debug("PAM: establishing credentials"); in do_pam_setcred()
1124 debug("PAM: pam_setcred(): %s", in do_pam_setcred()
1130 sshpam_tty_conv(int n, sshpam_const struct pam_message **msg,
1148 switch (PAM_MSG_MEMBER(msg, i, msg_style)) {
1151 read_passphrase(PAM_MSG_MEMBER(msg, i, msg),
1156 fprintf(stderr, "%s\n", PAM_MSG_MEMBER(msg, i, msg));
1165 fprintf(stderr, "%s\n", PAM_MSG_MEMBER(msg, i, msg));
1200 debug("PAM: changing password"); in do_pam_chauthtok()
1291 sshpam_passwd_conv(int n, sshpam_const struct pam_message **msg, in sshpam_passwd_conv() argument
1309 switch (PAM_MSG_MEMBER(msg, i, msg_style)) { in sshpam_passwd_conv()
1319 len = strlen(PAM_MSG_MEMBER(msg, i, msg)); in sshpam_passwd_conv()
1322 PAM_MSG_MEMBER(msg, i, msg))) != 0) in sshpam_passwd_conv()
1387 debug("PAM: password authentication accepted for %.100s", in sshpam_auth_passwd()
1391 debug("PAM: password authentication failed for %.100s: %s", in sshpam_auth_passwd()