summaryrefslogtreecommitdiff
path: root/mkpasswd.c
AgeCommit message (Collapse)AuthorFilesLines
2018-10-14mkpasswd: implement a generic way to provide the hash typeMarco d'Itri1-0/+11
2018-10-14mkpasswd: support the other hash types in libxcryptMarco d'Itri1-2/+17
Among them scrypt and bcrypt.
2018-10-14mkpasswd: reorder the hash typesMarco d'Itri1-10/+10
From the most secure to the less, accordingly to libxcrypt's crypt(5).
2018-10-14mkpasswd: correctly print the available methods as columnsMarco d'Itri1-1/+1
2018-10-10mkpasswd: adopt the John the Ripper naming of hash typesMarco d'Itri1-15/+15
And add hidden compatibility aliases for the old ones. (Except than the bcrypt variants, since there is no proof that anybody ever used this program for them.) See https://github.com/besser82/libxcrypt/pull/26 for more information.
2018-09-20mkpasswd: include crypt.h on SolarisMarco d'Itri1-1/+1
2018-09-20mkpasswd: fix rounds support for bcrypt 2x and 2yMarco d'Itri1-8/+8
2018-09-20mkpasswd: support letting crypt_gensalt decide the prefixMarco d'Itri1-3/+10
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-16mkpasswd: simplify a check for errorsMarco d'Itri1-3/+1
salt is a const char *, so we know that it cannot be modified as a side effect.
2018-09-16mkpasswd: update the libowcrypt Makefile sectionMarco d'Itri1-1/+0
Distributions which have crypt_gensalt in libowcrypt now should define a HAVE_LIBOWCRYPT=1 Makefile variable.
2018-09-16mkpasswd: rename HAVE_XCRYPT to HAVE_XCRYPT_HMarco d'Itri1-1/+1
2018-09-16mkpasswd: ifdef out the entropy gathering code on SolarisMarco d'Itri1-0/+6
2018-09-16mkpasswd: let crypt_gensalt collect entropy by itselfMarco d'Itri1-3/+16
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-12mkpasswd: use perror with crypt and crypt_gensaltMarco d'Itri1-5/+8
Only some implementations of crypt(3) set errno on errors.
2018-05-25mkpasswd: update the copyright yearMarco d'Itri1-1/+1
2018-05-22mkpasswd: support passwords of arbitrary lengthMarco d'Itri1-8/+31
Closes: #899254
2018-01-13Update the copyright yearsMarco d'Itri1-1/+1
2017-12-27Remove unused variables in get_random_bytes()Petr Písař1-4/+4
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-10mkpasswd: use getentropy(2) on recent LinuxMarco d'Itri1-3/+6
2017-12-10mkpasswd: refactoringMarco d'Itri1-9/+6
2017-08-22fix FSF address in mkpasswd.cAndreas Stieger1-3/+3
2017-02-26Annotate more functions with NORETURNMarco d'Itri1-2/+2
Contributed by Sami Kerola. Closes #48 from Github.
2017-02-26Fix minor compiler warningsMarco d'Itri1-2/+3
Fix a lot of minor compiler warnings with no practical effect. Contributed by Sami Kerola.
2017-02-26BSD portability fixesMarco d'Itri1-0/+1
2017-02-26mkpasswd: fix compile time error with HAVE_ARC4RANDOM_BUFMarco d'Itri1-1/+1
Patch from MacPorts.
2016-03-28mkpasswd: define _DEFAULT_SOURCEMarco d'Itri1-0/+1
Since glibc 2.20 it replaces the deprecated _BSD_SOURCE macro.
2015-03-23mkpasswd: exit if crypt_gensalt on Solaris failsMarco d'Itri1-1/+3
2014-12-26mkpasswd: use arc4random_buf where availableMarco d'Itri1-4/+11
2014-12-26mkpasswd: support OpenBSD's new hash 2bMarco d'Itri1-0/+6
2014-09-13mkpasswd: fix a memory leakMarco d'Itri1-0/+1
2014-09-13mkpasswd: correctly report read(2) failuresMarco d'Itri1-6/+8
They would always be reported as a short read.
2014-09-13mkpasswd: the number of random bytes is unsignedMarco d'Itri1-2/+2
2014-05-02Port mkpasswd to Solaris/DysonIgor Pashev1-4/+4
2014-02-07Extract the version number from the changelogMarco d'Itri1-0/+1
2014-02-06mkpasswd: fix an underflow in the parser for -RMarco d'Itri1-2/+5
Reported by mahkoh on github: https://github.com/rfc1036/whois/issues/12
2013-04-10Handle --help as success for mkpasswd tooMarco d'Itri1-7/+7
2013-03-30Imported Debian version 5.0.12v5.0.12Marco d'Itri1-28/+28
2013-03-30Imported Debian version 5.0.1v5.0.1Marco d'Itri1-1/+5
2013-03-30Imported Debian version 4.7.35v4.7.35Marco d'Itri1-8/+18
2013-03-30Imported Debian version 4.7.33v4.7.33Marco d'Itri1-39/+83
2013-03-30Imported Debian version 4.7.29v4.7.29Marco d'Itri1-1/+5
2013-03-30Imported Debian version 4.7.27v4.7.27Marco d'Itri1-2/+1
2013-03-30Imported Debian version 4.7.26v4.7.26Marco d'Itri1-88/+88
2013-03-30Imported Debian version 4.7.25v4.7.25Marco d'Itri1-56/+164
2013-03-30Imported Debian version 4.7.7v4.7.7Marco d'Itri1-6/+29
2013-03-30Imported Debian version 4.7.6v4.7.6Marco d'Itri1-2/+2
2013-03-30Imported Debian version 4.6.25v4.6.25Marco d'Itri1-3/+4
2013-03-30Imported Debian version 4.6.3v4.6.3Marco d'Itri1-1/+1
2013-03-30Imported Debian version 4.5.29v4.5.29Marco d'Itri1-5/+3
2013-03-30Imported Debian version 4.5.28v4.5.28Marco d'Itri1-1/+1