linux-pam/libpam/pam_modutil_private.h
Tomas Mraz 09c2e0fcf1 Relevant BUGIDs:
Purpose of commit: bugfix

Commit summary:
---------------
2008-05-14  Tomas Mraz <t8m@centrum.cz>

        * libpam/pam_modutil_getgrgid.c: Replace hardcoded constant with
        define PWD_LENGTH_SHIFT.
        * libpam/pam_modutil_getgrnam.c: Likewise.
        * libpam/pam_modutil_getpwnam.c: Likewise.
        * libpam/pam_modutil_getpwuid.c: Likewise.
        * libpam/pam_modutil_getspnam.c: Likewise.
        * libpam/pam_modutil_private.h: Adjust values for PWD_ constants.
2008-05-14 12:55:02 +00:00

25 lines
516 B
C

#ifndef PAMMODUTIL_PRIVATE_H
#define PAMMODUTIL_PRIVATE_H
/*
* $Id$
*
* Copyright (c) 2001 Andrew Morgan <morgan@kernel.org>
*/
#include "config.h"
#include <security/_pam_macros.h>
#include <security/pam_modules.h>
#include <security/pam_modutil.h>
#define PWD_INITIAL_LENGTH 0x400
#define PWD_ABSURD_PWD_LENGTH 0x40001
#define PWD_LENGTH_SHIFT 4 /* 2^4 == 16 */
extern void
pam_modutil_cleanup(pam_handle_t *pamh, void *data,
int error_status);
#endif /* PAMMODUTIL_PRIVATE_H */