104 Commits

Author SHA1 Message Date
Marco d'Itri
6e74da05d1
mkpasswd: use readpassphrase(3) if available 2025-06-21 01:34:43 +02:00
Marco d'Itri
977d6242d2 Enable getopt_long(3) support on Solaris 2023-11-09 22:04:21 +01:00
Marco d'Itri
c0d6e929d9 config.h: fix a missing "if defined" 2023-10-08 13:05:49 +02:00
Petr Menšík
6761f80395 Add SPDX license identifiers to code files
Change manual pages word to recognize it by licensecheck tool.
2023-07-22 17:38:06 +02:00
Ørjan Malde
edc625d0e1
config.h: add support for midipix
Signed-off-by: Ørjan Malde <red@foxi.me>

Signed-off-by: Ørjan Malde <red@foxi.me>
2022-11-01 17:54:18 +01:00
Fabrice Fontaine
6f8c9f5d85 config.h: fix uclibc builds without NLS
uclibc defines __GLIBC__ but doesn't always have NLS support resulting
in the following build failure:

In file included from whois.h:1,
                 from whois.c:44:
utils.h:38:11: fatal error: libintl.h: No such file or directory
   38 | # include <libintl.h>
      |           ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/a9d1c9076345d94ac2f9a4008b8563c5a34f655e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2022-10-16 22:09:36 +02:00
Marco d'Itri
f9d3786461 config.h: stop undefining RANDOM_DEVICE
HAVE_GETENTROPY or HAVE_ARC4RANDOM_BUF will be preferred anyway.
2019-08-26 04:06:54 +02:00
Marco d'Itri
88a7462301 mkpasswd: support the other hash types in libxcrypt
Among them scrypt and bcrypt.
2018-10-14 03:19:48 +02:00
Marco d'Itri
388d5757c4 mkpasswd: enable bcrypt if supported by the OS 2018-10-14 03:08:46 +02:00
Marco d'Itri
ae31f61a34 mkpasswd: include crypt.h on Solaris 2018-09-20 00:18:06 +02:00
Marco d'Itri
c12ad950fa config.h: fix the usage of __GLIBC__ vs. linux
gettext is a feature of the libc, while /dev/random is a feature of Linux.
2018-09-20 00:18:06 +02:00
Marco d'Itri
3197cb7db4 mkpasswd: support letting crypt_gensalt decide the prefix
If crypt_gensalt (as implemented by Solaris and modern versions of
libxcrypt) is passed a NULL prefix then it will decide by itself which
algorithm should be used by default.
2018-09-20 00:18:06 +02:00
Marco d'Itri
8392fd349d mkpasswd: use perror with crypt and crypt_gensalt
Only some implementations of crypt(3) set errno on errors.
2018-09-12 02:26:55 +02:00
Marco d'Itri
4be183d651 Remove the inet_pton(3)-based parser
It has never worked and never will.
2017-12-27 03:09:58 +01:00
Marco d'Itri
6557a52b3e mkpasswd: use getentropy(2) on recent Linux 2017-12-10 17:14:26 +01:00
Marco d'Itri
a4815eb370 BSD portability fixes 2017-02-26 14:13:27 +01:00
Marco d'Itri
b1cf371706 Do not use arc4random_buf on OS X v10.6 or erlier
Because it had not been implemented yet.

Patch from MacPorts.
2017-02-26 03:23:51 +01:00
Marco d'Itri
4fa1cd69e4 mkpasswd: use arc4random_buf where available 2014-12-26 19:55:51 +01:00
Marco d'Itri
d2ee7af1d7 Extract the version number from the changelog 2014-02-07 06:33:08 +01:00
Marco d'Itri
d053b2f1f6 Debian changelog for 5.1.1 2014-01-11 00:57:22 +01:00
Marco d'Itri
e660a2266f Debian changelog for 5.1.0 2013-12-26 20:40:19 +01:00
Marco d'Itri
5a0f08500f Debian changelog for 5.0.26 2013-07-17 01:06:44 +02:00
Marco d'Itri
4b92a43791 Debian changelog for 5.0.25 2013-05-10 05:20:27 +02:00
Marco d'Itri
7bcd0b7ec2 Debian changelog for 5.0.24 2013-04-18 03:37:02 +02:00
Marco d'Itri
16c9a177c9 Debian changelog for 5.0.23 2013-04-08 06:30:38 +02:00
Marco d'Itri
6392313e63 New release 5.0.22 2013-03-31 22:18:59 +02:00
Marco d'Itri
754121f014 New release 5.0.21 2013-03-31 07:43:41 +02:00
Marco d'Itri
d0d2407887 Imported Debian version 5.0.20 2013-03-30 02:32:08 +01:00
Marco d'Itri
a21a1d7756 Imported Debian version 5.0.19 2013-03-30 02:31:42 +01:00
Marco d'Itri
0b19184e9a Imported Debian version 5.0.18 2013-03-30 02:31:42 +01:00
Marco d'Itri
2d381497c0 Imported Debian version 5.0.17 2013-03-30 02:31:42 +01:00
Marco d'Itri
0e2b2133dd Imported Debian version 5.0.16 2013-03-30 02:31:42 +01:00
Marco d'Itri
51d8f998dd Imported Debian version 5.0.15 2013-03-30 02:31:41 +01:00
Marco d'Itri
ac181807bf Imported Debian version 5.0.14 2013-03-30 02:31:41 +01:00
Marco d'Itri
dc3da63043 Imported Debian version 5.0.13 2013-03-30 02:31:41 +01:00
Marco d'Itri
6c3ca39f25 Imported Debian version 5.0.12 2013-03-30 02:31:41 +01:00
Marco d'Itri
1712990060 Imported Debian version 5.0.11 2013-03-30 02:31:41 +01:00
Marco d'Itri
49e5db7e4c Imported Debian version 5.0.10 2013-03-30 02:31:40 +01:00
Marco d'Itri
4e22684dde Imported Debian version 5.0.9 2013-03-30 02:31:40 +01:00
Marco d'Itri
792f67eb4b Imported Debian version 5.0.8 2013-03-30 02:31:40 +01:00
Marco d'Itri
f4a1a12b0c Imported Debian version 5.0.7 2013-03-30 02:31:40 +01:00
Marco d'Itri
49aa4a0f24 Imported Debian version 5.0.6 2013-03-30 02:31:40 +01:00
Marco d'Itri
cdfdc7d88b Imported Debian version 5.0.5 2013-03-30 02:31:39 +01:00
Marco d'Itri
c4ba9f91d1 Imported Debian version 5.0.4 2013-03-30 02:31:39 +01:00
Marco d'Itri
f37f5f4fb3 Imported Debian version 5.0.3 2013-03-30 02:31:39 +01:00
Marco d'Itri
00a8697ca9 Imported Debian version 5.0.2 2013-03-30 02:31:39 +01:00
Marco d'Itri
9627a203ce Imported Debian version 5.0.1 2013-03-30 02:31:39 +01:00
Marco d'Itri
15c8d523f7 Imported Debian version 5.0.0 2013-03-30 02:31:38 +01:00
Marco d'Itri
e8806bc509 Imported Debian version 4.7.37 2013-03-30 02:31:38 +01:00
Marco d'Itri
12aa6bb6ad Imported Debian version 4.7.36 2013-03-30 02:31:38 +01:00