mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-23 09:43:36 +08:00
09c2e0fcf1
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.
25 lines
516 B
C
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 */
|