Moved defines from .h to .c. These are not used in the .h file.

This commit is contained in:
Johannes Findeisen 2025-01-10 02:54:20 +01:00
commit 0b7219c6d8
2 changed files with 17 additions and 17 deletions

View file

@ -15,6 +15,22 @@
#include "checkpw.h"
#ifndef MAX_PASSWORD_LEN
#define MAX_PASSWORD_LEN 256
#endif
#ifndef MAX_USERNAME_LEN
#define MAX_USERNAME_LEN 32
#endif
#ifndef MAX_UID
#define MAX_UID 1000
#endif
#ifndef MIN_UID
#define MIN_UID 1000
#endif
// Function to prompt user for input, optionally hiding input
void prompt_for_input(char *buffer, size_t size, const char *prompt,
bool hide_input)

View file

@ -10,23 +10,7 @@
#include <security/pam_appl.h>
#include <security/pam_misc.h>
#define VERSION "1.1.1"
#ifndef MAX_PASSWORD_LEN
#define MAX_PASSWORD_LEN 256
#endif
#ifndef MAX_USERNAME_LEN
#define MAX_USERNAME_LEN 32
#endif
#ifndef MAX_UID
#define MAX_UID 1000
#endif
#ifndef MIN_UID
#define MIN_UID 1000
#endif
#define VERSION "1.1.2"
bool authenticate(const char *username, const char *password, bool verbose);