Some housekeeping...

This commit is contained in:
Johannes Findeisen 2025-01-11 04:42:45 +01:00
commit 6d3e3393b5
6 changed files with 19 additions and 8 deletions

View file

@ -6,6 +6,8 @@
* License: Apache-2.0 (see LICENSE)
*/
#include "checkpw.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@ -13,8 +15,6 @@
#include <termios.h>
#include <unistd.h>
#include "checkpw.h"
#ifndef MAX_PASSWORD_LEN
#define MAX_PASSWORD_LEN 256
#endif
@ -173,7 +173,7 @@ int main(int argc, char *argv[])
printf("User '%s' passed UID check (UID: %d).\n", username,
pwd->pw_uid);
if (authenticate(username, password, verbose) == true) {
if (checkpw_authenticate(username, password, verbose) == true) {
printf("Authenticated successfully.\n");
return 0;
} else {