mirror of
https://github.com/shadow-maint/shadow.git
synced 2026-01-30 07:44:14 +00:00
The separation was unnecessary, and caused build problems. Let's go wild and obliterate the library. The files are moved to libshadow. Scripted change: $ find libmisc/ -type f \ | grep '\.[chy]$' \ | xargs mv -t lib; Plus updating the Makefile and other references. While at it, I've sorted the sources lists. Link: <https://github.com/shadow-maint/shadow/pull/792> Reported-by: David Seifert <soap@gentoo.org> Cc: Sam James <sam@gentoo.org> Cc: Christian Bricart <christian@bricart.de> Cc: Michael Vetter <jubalh@iodoru.org> Cc: Robert Förster <Dessa@gmake.de> [ soap tested the Gentoo package ] Tested-by: David Seifert <soap@gentoo.org> Acked-by: David Seifert <soap@gentoo.org> Acked-by: Serge Hallyn <serge@hallyn.com> Acked-by: Iker Pedrosa <ipedrosa@redhat.com> Acked-by: <lslebodn@fedoraproject.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 1990 - 1994, Julianne Frances Haugh
|
|
* SPDX-FileCopyrightText: 1997 - 2000, Marek Michałkiewicz
|
|
* SPDX-FileCopyrightText: 2005 , Tomasz Kłoczko
|
|
* SPDX-FileCopyrightText: 2008 - 2009, Nicolas François
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
/* $Id$ */
|
|
#ifndef _FAILURE_H_
|
|
#define _FAILURE_H_
|
|
|
|
#include "defines.h"
|
|
#include "faillog.h"
|
|
|
|
/*
|
|
* failure - make failure entry
|
|
*
|
|
* failure() creates a new (struct faillog) entry or updates an
|
|
* existing one with the current failed login information.
|
|
*/
|
|
extern void failure (uid_t, const char *, struct faillog *);
|
|
|
|
/*
|
|
* failcheck - check for failures > allowable
|
|
*
|
|
* failcheck() is called AFTER the password has been validated. If the
|
|
* account has been "attacked" with too many login failures, failcheck()
|
|
* returns FALSE to indicate that the login should be denied even though
|
|
* the password is valid.
|
|
*/
|
|
extern int failcheck (uid_t uid, struct faillog *fl, bool failed);
|
|
|
|
/*
|
|
* failprint - print line of failure information
|
|
*
|
|
* failprint takes a (struct faillog) entry and formats it into a
|
|
* message which is displayed at login time.
|
|
*/
|
|
extern void failprint (const struct faillog *);
|
|
|
|
#endif
|
|
|