Constify the return value from pam_getenv(3). This violates XSSO,
but I consider that a bug in the spec. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@211 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
ef2e6d8690
commit
309a306cfd
|
@ -31,7 +31,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/include/security/pam_appl.h#10 $
|
||||
* $P4: //depot/projects/openpam/include/security/pam_appl.h#11 $
|
||||
*/
|
||||
|
||||
#ifndef _PAM_APPL_H_INCLUDED
|
||||
|
@ -83,7 +83,7 @@ pam_get_user(pam_handle_t *_pamh,
|
|||
const char **_user,
|
||||
const char *_prompt);
|
||||
|
||||
char *
|
||||
const char *
|
||||
pam_getenv(pam_handle_t *_pamh,
|
||||
const char *_name);
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/lib/pam_getenv.c#12 $
|
||||
* $P4: //depot/projects/openpam/lib/pam_getenv.c#13 $
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
@ -48,7 +48,7 @@
|
|||
* Retrieve the value of a PAM environment variable
|
||||
*/
|
||||
|
||||
char *
|
||||
const char *
|
||||
pam_getenv(pam_handle_t *pamh,
|
||||
const char *name)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue