]> git.michaelhowe.org Git - packages/o/openafs.git/commit
pam: Password is const in setcred
authorAndrew Deason <adeason@sinenomine.net>
Mon, 25 Apr 2011 18:53:52 +0000 (13:53 -0500)
committerDerrick Brashear <shadow@dementix.org>
Fri, 16 Dec 2011 11:00:51 +0000 (03:00 -0800)
commit1a3668c1bdc2e5944b88b314956430994f1668e5
treee6b7af1c72de9570bc4044c0b7bfe937a0f56a67
parente068045157d83312587d16c1600d8c7a0a93e2f9
pam: Password is const in setcred

afs_setcred.c gets the "password" pointer from pam_get_data, which
always gives a const pointer (unlike pam_get_item used in afs_auth.c
&c, which sometimes gives a const or not-const pointer, depending on
the PAM implementation).

So, declare password const, to get better type checking.

Reviewed-on: http://gerrit.openafs.org/4553
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 94a9b2afd82b6729ddceb7ef736ddeb039e0ae1b)

Change-Id: I3171babfbdf29e7aa543a17f7dd543deedc9b30c
Reviewed-on: http://gerrit.openafs.org/6294
Tested-by: Derrick Brashear <shadow@dementix.org>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/pam/afs_setcred.c