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:
zodiac 2009-02-17 00:59:34 +00:00
parent cc8979092c
commit 530182d15e

View file

@ -179,11 +179,13 @@ static int read_string(int echo, const char *prompt, char **retstr) {
return nc;
}
#if defined(HAVE_SECURITY_PAM_CLIENT_H)
static pamc_bp_t *p(pamc_bp_t *p) {
// 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.
return p;
}
#endif
static int my_misc_conv(int num_msg, const struct pam_message **msgm,
struct pam_response **response, void *appdata_ptr) {