aboutsummaryrefslogtreecommitdiff
path: root/apps/passwd.c
AgeCommit message (Collapse)AuthorFilesLines
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell1-478/+458
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-22Move more comments that confuse indentMatt Caswell1-1/+2
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-30mark all block comments that need format preserving so thatTim Hudson1-1/+2
indent will not alter them when reformatting comments Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
2005-06-29Brought forward from 0.9.8 - 64 bit warning fixes and fussy compiler fixes.Ben Laurie1-1/+2
2005-04-05some const fixesNils Larsch1-2/+2
2003-10-29A general spring-cleaning (in autumn) to fix up signed/unsigned warnings.Geoff Thorpe1-1/+2
I have tried to convert 'len' type variable declarations to unsigned as a means to address these warnings when appropriate, but when in doubt I have used casts in the comparisons instead. The better solution (that would get us all lynched by API users) would be to go through and convert all the function prototypes and structure definitions to use unsigned variables except when signed is necessary. The proliferation of (signed) "int" for strictly non-negative uses is unfortunate.
2002-12-03EXIT() may mean return(). That's confusing, so let's have it really meanRichard Levitte1-2/+2
exit() in whatever way works for the intended platform, and define OPENSSL_EXIT() to have the old meaning (the name is of course because it's only used in the openssl program)
2002-10-14makedepend complains when a header file is included more than once inRichard Levitte1-1/+0
the same source file.
2002-03-22Merge in DES changed from 0.9.7-stable.Richard Levitte1-2/+2
2002-02-22Config code updates.Dr. Stephen Henson1-0/+3
CONF_modules_unload() now calls CONF_modules_finish() automatically. Default use of section openssl_conf moved to CONF_modules_load() Load config file in several openssl utilities. Most utilities now load modules from the config file, though in a few (such as version) this isn't done because it couldn't be used for anything. In the case of ca and req the config file used is the same as the utility itself: that is the -config command line option can be used to specify an alternative file.
2001-10-24Due to an increasing number of clashes between modern OpenSSL andRichard Levitte1-1/+1
libdes (which is still used out there) or other des implementations, the OpenSSL DES functions are renamed to begin with DES_ instead of des_. Compatibility routines are provided and declared by including openssl/des_old.h. Those declarations are the same as were in des.h when the OpenSSL project started, which is exactly how libdes looked at that time, and hopefully still looks today. The compatibility functions will be removed in some future release, at the latest in version 1.0.
2001-10-16Retain compatibility of EVP_DigestInit() and EVP_DigestFinal()Dr. Stephen Henson1-6/+6
with existing code. Modify library to use digest *_ex() functions.
2001-07-30Really add the EVP and all of the DES changes.Ben Laurie1-12/+11
2001-06-23Use apps_shutdown() in all applications, in case someone decides notRichard Levitte1-0/+1
to go the monolith way (does anyone do that these days?). NOTE: a few applications are missing in this commit. I've a few more changes in them that I haven't tested yet.
2001-06-19Change all calls to low level digest routines in the library andDr. Stephen Henson1-27/+27
applications to use EVP. Add missing calls to HMAC_cleanup() and don't assume HMAC_CTX can be copied using memcpy(). Note: this is almost identical to the patch submitted to openssl-dev by Verdon Walker <VWalker@novell.com> except some redundant EVP_add_digest_()/EVP_cleanup() calls were removed and some changes made to avoid compiler warnings.
2001-03-13Fix: return 0 if no error occured.Bodo Möller1-0/+1
2001-02-20Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte1-1/+1
missed any. This compiles and runs on Linux, and external applications have no problems with it. The definite test will be to build this on VMS.
2001-02-19Make all configuration macros available for application by makingRichard Levitte1-8/+8
sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
2001-01-19Fix openssl passwd -1Bodo Möller1-1/+1
2000-11-17Improve usability of 'openssl passwd' by includingBodo Möller1-1/+6
password verification where it makes sense.
2000-09-20On VMS, stdout may very well lead to a file that is written to in aRichard Levitte1-1/+7
record-oriented fashion. That means that every write() will write a separate record, which will be read separately by the programs trying to read from it. This can be very confusing. The solution is to put a BIO filter in the way that will buffer text until a linefeed is reached, and then write everything a line at a time, so every record written will be an actual line, not chunks of lines and not (usually doesn't happen, but I've seen it once) several lines in one record. Voila, BIO_f_linebuffer() is born. Since we're so close to release time, I'm making this VMS-only for now, just to make sure no code is needlessly broken by this. After the release, this BIO method will be enabled on all other platforms as well.
2000-07-31Update 'openssl passwd' documentation on selection of algorithms.Bodo Möller1-1/+1
2000-06-23BSD-style MD5-based password algorithm in 'openssl passwd'.Bodo Möller1-29/+46
(Still needs to be tested against the original using sample passwords of different length.)
2000-06-01There have been a number of complaints from a number of sources that namesRichard Levitte1-5/+5
like Malloc, Realloc and especially Free conflict with already existing names on some operating systems or other packages. That is reason enough to change the names of the OpenSSL memory allocation macros to something that has a better chance of being unique, like prepending them with OPENSSL_. This change includes all the name changes needed throughout all C files.
2000-04-27Stylistic changes: Don't use a macro for the malloc'ed length since itBodo Möller1-3/+5
is not constant.
2000-04-27Warn about truncation also in the case when a single password is read usingBodo Möller1-2/+4
the password prompt.
2000-02-24Make gcc 2.95.2 happy here, too.Ralf S. Engelschall1-0/+2
2000-02-20Fix gcc warnings.Ulf Möller1-3/+3
2000-02-17Casts now unnecessary because of changed prototype.Bodo Möller1-3/+3
2000-02-16Fix signed/unsigned warnings.Ben Laurie1-0/+2
2000-02-11Corrections.Bodo Möller1-7/+12
2000-02-11Implement MD5-based "apr1" password hash.Bodo Möller1-64/+338
2000-02-11Fix shadow.Ben Laurie1-8/+8
2000-02-10'passwd' tool.Bodo Möller1-0/+192