]> git.michaelhowe.org Git - packages/o/openafs.git/commit
pam: Clear up PAM_CONST related warnings on Linux
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 16 Apr 2011 15:22:54 +0000 (11:22 -0400)
committerDerrick Brashear <shadow@dementix.org>
Fri, 16 Dec 2011 18:58:33 +0000 (10:58 -0800)
commitfe2d1b6615a43ad6ba3e0df50e3643b7a9476131
treee5be9df2534c159edd20802f2b4c18dd0c1d1dbe
parent71d5f66e8679e4c9c67cfe41411b696f5f72733b
pam: Clear up PAM_CONST related warnings on Linux

Commit 78d1f8d8 expanded the use of PAM_CONST and introduced many
new warnings on Linux where pam expects "const" arguments.

This clears up the warnings by doing the following:
- Cast "user" to char * when kalling ka* functions
- Change the signature of pam_afs_prompt and pam_afs_printf to use
PAM_CONST
- Use a separate non-const password pointer for pam_afs_prompt

Reviewed-on: http://gerrit.openafs.org/4487
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 3ea39166d64d2e66cddef015734c2f91548423af)

Change-Id: I16179a1c8b9d0e53c90b54733d1c5130f1d23153
Reviewed-on: http://gerrit.openafs.org/6293
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/pam/afs_auth.c
src/pam/afs_pam_msg.c
src/pam/afs_pam_msg.h
src/pam/afs_password.c
src/pam/afs_setcred.c