bin/113230: const-ify PAM-headers

Mikhail T. mi at
Fri Jun 1 16:50:05 UTC 2007

>Number:         113230
>Category:       bin
>Synopsis:       const-ify PAM-headers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 01 16:50:04 GMT 2007
>Originator:     Mikhail T.
>Release:        FreeBSD 6.2-STABLE amd64
Virtual Estates, Inc.
System: FreeBSD 6.2-STABLE FreeBSD 6.2-STABLE #2: Mon Mar 26 18:05:02 EDT 2007 mi at amd64

	As currently declared, the pam_* functions don't guarantee
	the read-onlyness of the passed in data, even where no
	modifications could happen.

	The declarations also differ from those used of Solaris
	and Linux, leading to increased porting burden of 3rd-party
	PAM-modules (such as Samba's winbind).

	It is possible, that a newer version of OpenPAM will bring
	in these changes, but we can update the headers (without
	functional changes) now to introduce the updated API and
	ease the porting efforts.


	The up-to-date patch can be found at

	or -- color-coded -- at:

	It does not, at the moment, touch the relevant man-pages. These
	will be updated soon, but testing/review of the code can begin

	The changes only add const-ness here and there -- no functional

More information about the freebsd-bugs mailing list