예제 #1
0
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);
}
예제 #2
0
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);
}