File: pam_extra.h

package info (click to toggle)
duo-unix 1.11.3-1.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,892 kB
  • sloc: sh: 12,108; ansic: 9,223; python: 1,639; makefile: 156
file content (28 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef PAM_EXTRA_H
#define PAM_EXTRA_H

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#ifndef HAVE_PAM_VPROMPT
int pam_vprompt(
    pam_handle_t *pamh,
    int style,
    char **response,
    const char *fmt,
    va_list args
);

int pam_prompt(
    pam_handle_t *pamh,
    int style,
    char **response,
    const char *fmt,
    ...
);

#define pam_info(pamh, fmt...) pam_prompt(pamh, PAM_TEXT_INFO, NULL, fmt)
#endif

#endif /* PAM_EXTRA_H */