394 Commits

Author SHA1 Message Date
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
61f4e5d64c mkpasswd: simplify a check for errors
salt is a const char *, so we know that it cannot be modified as a side
effect.
2018-09-16 03:36:38 +02:00
Marco d'Itri
c1cb4b2ca0 mkpasswd: update the libowcrypt Makefile section
Distributions which have crypt_gensalt in libowcrypt now should define
a HAVE_LIBOWCRYPT=1 Makefile variable.
2018-09-16 03:36:38 +02:00
Marco d'Itri
44775cb342 mkpasswd: rename HAVE_XCRYPT to HAVE_XCRYPT_H 2018-09-16 03:36:38 +02:00
Marco d'Itri
7a325d277c mkpasswd: ifdef out the entropy gathering code on Solaris 2018-09-16 03:35:38 +02:00
Marco d'Itri
19e44ac2ec mkpasswd: let crypt_gensalt collect entropy by itself
Let crypt_gensalt(3) collect entropy by itself instead of having
mkpasswd provide it.
This is supported by the libxcrypt implementation of crypt_gensalt(3).
2018-09-16 03:35:38 +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
5fc64b5eba mkpasswd: support the new libxcrypt 4.x 2018-09-12 02:26:55 +02:00
Marco d'Itri
71cf1ca7e1 Update the list of new gTLDs 2018-09-12 02:26:33 +02:00
Marco d'Itri
a884966cc8 Debian changelog for 5.3.2 v5.3.2 2018-07-15 12:40:31 +02:00
huguei
dd49cdeeb9 Update the charset for whois.nic.cl 2018-07-15 12:37:43 +02:00
Marco d'Itri
6f1cdfb960 Update the .au server 2018-07-15 12:13:27 +02:00
Marco d'Itri
bd4bd6e584 Update the .ie server 2018-07-15 12:13:11 +02:00
Marco d'Itri
d67739f043 Add the .ge server 2018-07-15 12:12:19 +02:00
Marco d'Itri
edd9112fd5 Update the list of new gTLDs 2018-07-11 16:19:59 +02:00
Marco d'Itri
fbeb327936 mkpasswd: update the copyright year 2018-05-25 01:44:38 +02:00
Marco d'Itri
4bf662069c Debian changelog for 5.3.0 v5.3.1 2018-05-22 15:34:07 +02:00
Marco d'Itri
fdd5a596b0 mkpasswd: support passwords of arbitrary length
Closes: #899254
2018-05-22 05:04:54 +02:00
Marco d'Itri
42f6fab4cf Fix a use after free in convert_in6arpa()
Looks like I forgot a free() call after changing the API.

Reported by Coverity Scan.
2018-05-22 04:33:34 +02:00
Marco d'Itri
51ff1b39f9 Add support for -bzh NIC handles 2018-05-22 02:22:04 +02:00
panaceya
ec211c2b33 Add support for -uanic NIC handles 2018-05-22 02:21:05 +02:00
Marco d'Itri
4613c51bcc New TLD servers: ls 2018-05-22 01:43:56 +02:00
Marco d'Itri
2d9d82afe9 Update the list of new gTLDs 2018-05-22 01:43:45 +02:00
Marco d'Itri
7735818026 include sys/time.h for select(2) on BSDs 2018-02-20 01:36:04 +01:00
Marco d'Itri
ba7218d902 Debian changelog for 5.3.0 v5.3.0 2018-01-21 01:24:06 +01:00
Marco d'Itri
9b0c29e271 Update the .pr TLD server 2018-01-21 01:21:51 +01:00
Marco d'Itri
2a746f4390 Update the list of new gTLDs 2018-01-21 01:21:35 +01:00
Marco d'Itri
488e445f53 Add the .in hiding string 2018-01-13 01:43:12 +01:00
Marco d'Itri
a9f59fdd52 Update the copyright years 2018-01-13 01:15:48 +01:00
Marco d'Itri
1f28a6ed25 Remove references to 6bone 2018-01-13 01:15:34 +01:00
Marco d'Itri
8a6ce04adb Implement querying ip6.arpa domains
The program will query the whois server of the appropriate RIR when
provided with an *.ip6.arpa IPv6 reverse DNS domain.
2018-01-13 01:14:27 +01:00
Marco d'Itri
cb0c7062ab Fix the formatting 2018-01-08 03:00:06 +01:00
Marco d'Itri
ac1d4125de Makefile: fix the afl invocation
DEFS must be set in the environment or else will override even DEFS+=...
statements in the Makefile.
2018-01-08 02:50:53 +01:00
Marco d'Itri
5d60bbe102 Abort the build if the old HAVE_LIBIDN variable is defined
To encourage maintainers to automatically detect libidn2 and hopefully
switch to it.
2018-01-08 02:15:53 +01:00
Marco d'Itri
0af8984ad7 Debian changelog for 5.2.20 v5.2.20 2017-12-27 03:26:25 +01:00
Marco d'Itri
2534108200 Update the .vn TLD server 2017-12-27 03:25:03 +01:00
Marco d'Itri
caf03e771c Update the .com.uy TLD server 2017-12-27 03:25:03 +01:00
Marco d'Itri
ea4a698e1a Update the .ph TLD server 2017-12-27 03:25:03 +01:00
Marco d'Itri
243b72a263 Update the .ls TLD server 2017-12-27 03:25:03 +01:00
Marco d'Itri
76be6214df Update the .kw TLD server 2017-12-27 03:25:03 +01:00
Marco d'Itri
ac41790c1f Update the .gr TLD server 2017-12-27 03:25:03 +01:00
Marco d'Itri
72d5f8bd51 Update the .gh TLD server 2017-12-27 03:25:03 +01:00
Marco d'Itri
4f32ffa479 Update the .sb TLD server 2017-12-27 03:24:46 +01:00
Marco d'Itri
1a90b5433a Update the .ai TLD server 2017-12-27 03:24:00 +01:00
Marco d'Itri
ee86b76114 Update some comments in tld_serv_list 2017-12-27 03:23:48 +01:00
Marco d'Itri
b5d4bb43a8 Remove the .bs TLD server 2017-12-27 03:13:38 +01:00
Marco d'Itri
95c2a51d51 Add the .mr TLD server 2017-12-27 03:13:38 +01: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
Timo Gurr
8a4023b315 use env var ${PKG_CONFIG} instead of hard coding pkg-config
This allows building in cross environments e.g. using host triplet
prefixed binaries (x86_64-pc-linux-gnu-pkg-config).
2017-12-27 03:09:58 +01:00
Petr Písař
50b57a6fb7 Remove unused variables in get_random_bytes()
If getentropy() is available, GCC warns about unsused variables:

mkpasswd.c: In function ‘get_random_bytes’:
mkpasswd.c:369:13: warning: unused variable ‘bytes_read’ [-Wunused-variable]
     ssize_t bytes_read;
             ^~~~~~~~~~
mkpasswd.c:368:9: warning: unused variable ‘fd’ [-Wunused-variable]
     int fd;
         ^~

This patch fixes it.
2017-12-27 03:09:58 +01:00