Displaying 1 result from an estimated 1 matches for "prompt_msg".
2005 Jun 21
1
problem with pam_converse with openssh protocol version 1
...security restrictions lately and I was
to write more strict authorization modules for pam. One of it works
asking for some kind of additional security string (for example pin from
some kind of token). It is done by pam module, which asks calling
application to do conversation for him:
prompt_msg.msg_style = PAM_PROMPT_ECHO_OFF;
prompt_msg.msg=strdup("Enter PIN:");
pmsg[i++] = &prompt_msg;
retval = pam_get_item(pamh, PAM_CONV,(void *) &conv);
if (retval != PAM_SUCCESS)
return PAM_SYSTEM_ERR;
retval = conv->conv (i,(...