Only defined binary conversation support, if actually available.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@64 0da03de8-d603-11dd-86c2-0f8696b7b6f9
This commit is contained in:
parent
cc8979092c
commit
530182d15e
1 changed files with 2 additions and 0 deletions
|
@ -179,11 +179,13 @@ static int read_string(int echo, const char *prompt, char **retstr) {
|
||||||
return nc;
|
return nc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HAVE_SECURITY_PAM_CLIENT_H)
|
||||||
static pamc_bp_t *p(pamc_bp_t *p) {
|
static pamc_bp_t *p(pamc_bp_t *p) {
|
||||||
// GCC is too smart for its own good, and triggers a warning in
|
// GCC is too smart for its own good, and triggers a warning in
|
||||||
// PAM_BP_RENEW, unless we pass the first argument through a function.
|
// PAM_BP_RENEW, unless we pass the first argument through a function.
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int my_misc_conv(int num_msg, const struct pam_message **msgm,
|
static int my_misc_conv(int num_msg, const struct pam_message **msgm,
|
||||||
struct pam_response **response, void *appdata_ptr) {
|
struct pam_response **response, void *appdata_ptr) {
|
||||||
|
|
Loading…
Reference in a new issue