Merge nearly ready for 1.4.0.

This commit is contained in:
Johannes Findeisen 2025-06-27 02:56:55 +02:00
commit d92c2d2a76
11 changed files with 28 additions and 16 deletions

View file

@ -140,7 +140,7 @@ gcc -Wall -DMAX_UID=1000 -DMIN_UID=1000 -o chkpwd chkpwd.c -lpam -lpam_misc
## License
chkpwd is licensed under the Apache License, Version 2.0.
chkusr is licensed under the Apache License, Version 2.0.
See LICENSE for details.

View file

@ -2,10 +2,12 @@
* chkgrp-min is a program that checks if a user is a member of a group.
*
* Author: Johannes Findeisen <you@hanez.org> - 2025
* Homepage: https://git.xw3.org/hanez/chkgrp
* Homepage: https://git.xw3.org/hanez/chkusr
* License: Apache-2.0 (see LICENSE)
*/
#include "version.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -3,10 +3,12 @@
* of a group.
*
* Author: Johannes Findeisen <you@hanez.org> - 2025
* Homepage: https://git.xw3.org/hanez/chkgrp
* Homepage: https://git.xw3.org/hanez/chkusr
* License: Apache-2.0 (see LICENSE)
*/
#include "version.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -2,10 +2,12 @@
* chkgrp-min-native is a program that checks if a user is a member of a group.
*
* Author: Johannes Findeisen <you@hanez.org> - 2025
* Homepage: https://git.xw3.org/hanez/chkgrp
* Homepage: https://git.xw3.org/hanez/chkusr
* License: Apache-2.0 (see LICENSE)
*/
#include "version.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -2,10 +2,12 @@
* chkgrp-native is a program that checks if a user is a member of a group.
*
* Author: Johannes Findeisen <you@hanez.org> - 2025
* Homepage: https://git.xw3.org/hanez/chkgrp
* Homepage: https://git.xw3.org/hanez/chkusr
* License: Apache-2.0 (see LICENSE)
*/
#include "version.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -2,10 +2,12 @@
* chkgrp-ng is a program that checks if a user is a member of a group.
*
* Author: Johannes Findeisen <you@hanez.org> - 2025
* Homepage: https://git.xw3.org/hanez/chkgrp
* Homepage: https://git.xw3.org/hanez/chkusr
* License: Apache-2.0 (see LICENSE)
*/
#include "version.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -2,10 +2,12 @@
* chkgrp is a program that checks if a user is a member of a group.
*
* Author: Johannes Findeisen <you@hanez.org> - 2025
* Homepage: https://git.xw3.org/hanez/chkgrp
* Homepage: https://git.xw3.org/hanez/chkusr
* License: Apache-2.0 (see LICENSE)
*/
#include "version.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -1,4 +1,4 @@
.TH checkpw 1 "June 2025" "chkpwd 1.3.1" "chkpwd man page"
.TH checkpw 1 "June 2025" "chkpwd 1.4.0" "chkpwd man page"
.SH NAME
chkpwd \- checks the validity of a users password on a UNIX/PAM-based system.
.SH SYNOPSIS

View file

@ -8,6 +8,7 @@
*/
#include "chkpwd.h"
#include "version.h"
#include <stdbool.h>
#include <stdio.h>

View file

@ -1,18 +1,16 @@
/**
* chkpwd.h is part of chkpwd, a program that checks the validity of a users
* password on a UNIX/PAM-based system.
* chkpwd.h is part of chkusr, a set of programs to verify information about
* a user on UNIX based systems.
*
* Author: Johannes Findeisen <you@hanez.org> - 2025
* Homepage: https://git.xw3.org/hanez/chkpwd
* Homepage: https://git.xw3.org/hanez/chkusr
* License: Apache-2.0 (see LICENSE)
*/
#include <pwd.h>
#include <stdbool.h>
#include <security/pam_appl.h>
#include <security/pam_misc.h>
#include <stdbool.h>
#define VERSION "1.3.1"
bool checkpw_authenticate(const char *username, const char *password,
bool verbose);

1
version.h Normal file
View file

@ -0,0 +1 @@
#define VERSION "1.4.0"