logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pam_prompt, pam_vprompt - interface to conversation function

Description

The pam_prompt function constructs a message from the specified format string and arguments and passes it to the conversation function as set by the service. Upon successful return, response is set to point to a string returned from the conversation function. This string is allocated on heap and should be freed.

Name

pam_prompt, pam_vprompt - interface to conversation function

Return Values

PAM_BUF_ERR Memory buffer error. PAM_CONV_ERR Conversation failure. PAM_SUCCESS Conversation succeeded, response is set. PAM_SYSTEM_ERR System error.

See Also

pam(7), pam_conv(3)

Standards

The pam_prompt and pam_vprompt functions are Linux-PAM extensions. Linux-PAM 07/03/2025 PAM_PROMPT(3)

Synopsis

#include<security/pam_ext.h>intpam_prompt(pam_handle_t*pamh,intstyle,char**response,constchar*fmt,...);intpam_vprompt(pam_handle_t*pamh,intstyle,char**response,constchar*fmt,va_listargs);

See Also