]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
OpenSolaris: PAM conversation defined non-const
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 4 May 2010 13:42:02 +0000 (01:42 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 4 May 2010 13:42:02 +0000 (01:42 +1200)
helpers/basic_auth/PAM/pam_auth.c

index 7ece95e86f61e48b621a08f5ec294af38cfb499b..b0d4d40a07fa8c311ea529bed76b56b2a11101a6 100644 (file)
@@ -100,7 +100,11 @@ static char *password = NULL;      /* Workaround for Solaris 2.6 brokenness */
  * expects a single converstation message of type PAM_PROMPT_ECHO_OFF.
  */
 static int
+#if _SQUID_SOLARIS_
+password_conversation(int num_msg, struct pam_message **msg, struct pam_response **resp, void *appdata_ptr)
+#else
 password_conversation(int num_msg, const struct pam_message **msg, struct pam_response **resp, void *appdata_ptr)
+#endif
 {
     if (num_msg != 1 || msg[0]->msg_style != PAM_PROMPT_ECHO_OFF) {
         fprintf(stderr, "ERROR: Unexpected PAM converstaion '%d/%s'\n", msg[0]->msg_style, msg[0]->msg);