summaryrefslogtreecommitdiff
path: root/usr.bin/encrypt
AgeCommit message (Collapse)Author
2019-09-14correct some unveil(2) violations due to "login.conf.db" access (the .db versionSebastien Marie
of "login.conf"), and stat(2) on _PATH_MASTERPASSWD_LOCK (via pw_mkdb(3)). problem initially noted by myself for passwd(1) millert@ reported similar problem on chpass(1), su(1), doas(1) and encrypt(1) mestre@ noted chpass(1) too ok mestre@ millert@
2018-08-03The first unveil userland commit!Theo de Raadt
unveil _PATH_LOGIN_CONF (/etc/login.conf) which is used by login_getclass(3) and family before doing password encode. This is the only filename used by the program during runtime, everything else happens on stdin/stdout.
2018-08-03This does not need pledge "wpath"Theo de Raadt
2017-07-09remove redundant variable declarations in Makefiles, since those areMarc Espie
the default. okay millert@
2017-05-24Use freezero instead of explicit_bzero+freeRicardo Mestre
OK tb@
2017-05-03Use the safe idiom of cleaning sensitive data from memory with explicit_bzero,Ricardo Mestre
instead of relying on other methods, after readpassphrase. Some programs on this diff won't benefit that much since it happens near the terminal path, but someone might copy the unsafe idiom to another program and place it where it may leak sensitive data. Discussed aeons ago with tb@, OK deraadt@ and beck@
2016-09-04usage() is static and __dead; add prototype for print_passwd;Theo Buehler
return instead of exit from main
2016-09-02_PASSWORD_LEN is length that comes out of crypt(), not a meaningfulTed Unangst
length for user entered passwords. And the +1 is just superstitious nonsense inherited from getpass() guts. Switch to a pleasing fixed size of 1024. ok millert
2016-09-02convert getpass to readpassphrase. from Dimitris PapastamosTed Unangst
2015-10-12These no longer need to be static. The ramdisk's no longer reach-aroundTheo de Raadt
and use the one in the base install, but have their own copy. ok millert sthen miod daniel
2015-10-10encrypt(1) also needs to pledge "wpath" for getpass().Doug Hogan
getpass() opens /dev/tty RW so it can write the prompt. ok deraadt@
2015-10-10pledge "stdio rpath tty". rpath for the configuration reading done byTheo de Raadt
login* subsystem, tty for readpassphase() ok beck
2015-02-26Wrap a long line. Use explicit_bzero. Fix comment describing extra.Ted Unangst
From Andre Smagin Also, should be safe to print errno from newhash() now. ok millert
2015-02-24increase prefbuf size so that 'encrypt -b 000000000000000000000012' works.Ted Unangst
noticed by Andre Smagin. also check snprintf for overflow so we get better error messages if somebody decides to pad with even more zeroes, and avoid possible truncations.
2015-01-15remove unused variableCharles Longeau
ok tedu@
2015-01-05encrypt can use the scrypt scaling code in libc now via crypt_newhashTed Unangst
2015-01-04fix -b a mode, spotted by rpeTheo de Raadt
2014-12-29impose some limits on the ideal rounds so nothing too crazy happens whenTed Unangst
the clock results are weird
2014-12-24simplify. bcrypt only support and use newer libc APIs. no makekey emul.Ted Unangst
ok deraadt schwarze is a little sad to see the last 1/8 shared man page go, but we have a support program in place, called the attic.
2014-11-03hoist blowfish up and use bcrypt_newhash directlyTed Unangst
2014-09-03remove -m from usage();Jason McIntyre
2014-09-03kill md5 support, broken since MayGiovanni Bechis
ok tedu@
2013-11-12simpler prototype repairsTheo de Raadt
2013-05-23allow auto scaling bcrypt rounds by CPU power.Ted Unangst
ok deraadt jmc sthen
2007-07-14Don't trim whitespace from stdin. Encrypt it the same as otherKenneth R Westerback
input sources. Feedback and fixes from ray@ and fgsch@. ok millert@ (six years ago) ray@ fgsch@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-01use strtonum; ok millert@Jason Dixon
2007-03-20remove some bogus *p tests from charles longeauTed Unangst
ok deraadt millert
2007-03-06oops, put -k in the right place; from Igor SobradoJason McIntyre
2007-03-06make "makekey" clearer;Jason McIntyre
2007-03-06tidy up synopsis and usage(); from Igor SobradoJason McIntyre
2006-11-02There is no need to trim an empty string any further, just returnRay Lai
it. OK moritz@.
2006-05-27Handle crypt(3) returning NULL. Found by Gustavo C. Pereira.Moritz Jodeit
ok deraadt@
2006-04-02oops, to64() is shared.Theo de Raadt
2004-07-13passwd.conf has been deprecated since login.conf was imported.Todd C. Miller
Today it finally dies. Based on a diff from Gabriel Kihlman.
2003-11-23Check getpass(3) return value. From Jared Yanovich <jjy2+ at pitt dot edu>Otto Moerbeek
ok henning@
2003-07-02protosTheo de Raadt
2003-06-14Add a "-c class" option to specify that the given login class shouldTodd C. Miller
be used to find the cipher to user.
2003-04-06strlcpyTheo de Raadt
2002-06-27Document why this must be static.Artur Grabowski
2002-05-11Add missing libraries to bsd.prog.mk (mostly kerberosV)Marc Espie
Use them in DPADD throughout the tree. Fix a few mispells (LIBMATH -> LIBM...) Wipe obsolete lib (LIBRESOLV) Sort added missing libraries, move obsolete stuff apart. Synch documentation in bsd.README ok deraadt@
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-07-31KNF + some ANSIficationTodd C. Miller
2001-07-31Call pwd_gensalt() with the correct args and reference login.confTodd C. Miller
in man page; hideishi@magisystem.net
2000-11-11allow prompt to be specified anywhere on the command line, make it workNiels Provos
with md5. prohibit makekey mode and prompt.
2000-11-10seperate -> separate, okay aaron@Niels Provos
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-03-23Fix some formatting problems I missed before.Aaron Campbell
2000-03-05Various improvements, including a few HISTORY sections added from FreeBSD.Aaron Campbell
2000-03-05Finish standardizing options list introduction.Aaron Campbell