Signed-off-by: Alejandro Colomar <alx@kernel.org>
addgrps.c \
age.c \
agetpass.c \
+ agetpass.h \
alloc.c \
alloc.h \
audit_help.c \
#include <config.h>
+#include "agetpass.h"
+
#include <limits.h>
#include <readpassphrase.h>
#include <stdio.h>
#ident "$Id$"
#include "alloc.h"
-#include "prototypes.h"
#if WITH_LIBBSD == 0
#include "freezero.h"
--- /dev/null
+/*
+ * SPDX-FileCopyrightText: 2022-2023, Alejandro Colomar <alx@kernel.org>
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+
+#ifndef SHADOW_INCLUDE_LIB_AGETPASS_H_
+#define SHADOW_INCLUDE_LIB_AGETPASS_H_
+
+
+#include <config.h>
+
+#include "defines.h"
+
+
+void erase_pass(char *pass);
+ATTR_MALLOC(erase_pass)
+char *agetpass(const char *prompt);
+
+
+#endif // include guard
extern void agecheck (/*@null@*/const struct spwd *);
extern int expire (const struct passwd *, /*@null@*/const struct spwd *);
-/* agetpass.c */
-extern void erase_pass(char *pass);
-ATTR_MALLOC(erase_pass)
-extern char *agetpass(const char *prompt);
-
/* isexpired.c */
extern int isexpired (const struct passwd *, /*@null@*/const struct spwd *);
#include <stdio.h>
#include <sys/types.h>
+#include "agetpass.h"
#include "alloc.h"
#include "defines.h"
#include "groupio.h"
#include <stdio.h>
#include <assert.h>
+#include "agetpass.h"
#include "alloc.h"
#include "defines.h"
#include "getdef.h"
#include <sys/types.h>
#include <time.h>
+#include "agetpass.h"
#include "alloc.h"
#include "defines.h"
#include "getdef.h"
#include <signal.h>
#include <stdio.h>
#include <sys/ioctl.h>
+
+#include "agetpass.h"
#include "defines.h"
#include "getdef.h"
#include "memzero.h"