int pam_csc_print_message(pam_handle_t* pamh, char* msg, int style)
{
int retval = PAM_SUCCESS;
- struct pam_conv* conv;
+ const struct pam_conv* conv;
struct pam_message message;
struct pam_message* messages[1];
struct pam_response* response;
/* output message */
- WARN_PAM( pam_get_item(pamh, PAM_CONV, (void**)&conv) )
+ WARN_PAM( pam_get_item(pamh, PAM_CONV, (const void**)&conv) )
messages[0] = &message;
message.msg_style = style;
message.msg = msg;
/* check if we are logging in from a CSCF teaching thin client */
cscf = false;
- if(pam_get_item(pamh, PAM_RHOST, (void**)&pam_rhost) && pam_rhost)
+ if(pam_get_item(pamh, PAM_RHOST, (const void**)&pam_rhost) && pam_rhost)
{
/* TODO: check pam_rhost
* It appears that the thin clients all have hostnames of the form