Moved defines from .h to .c. These are not used in the .h file.
This commit is contained in:
parent
5e80936967
commit
0b7219c6d8
2 changed files with 17 additions and 17 deletions
16
checkpw.c
16
checkpw.c
|
|
@ -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)
|
||||
|
|
|
|||
18
checkpw.h
18
checkpw.h
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue