int pam_info(const pam_handle_t *pamh, const char *fmt, ...) { va_list ap; char *rsp; int r; va_start(ap, fmt); r = pam_vprompt(pamh, PAM_TEXT_INFO, &rsp, fmt, ap); va_end(ap); FREE(rsp); /* ignore response */ return (r); }
int pam_prompt(const pam_handle_t *pamh, int style, char **resp, const char *fmt, ...) { va_list ap; int r; va_start(ap, fmt); r = pam_vprompt(pamh, style, resp, fmt, ap); va_end(ap); return (r); }