aboutsummaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/crypt-des.c
Commit message (Collapse)AuthorAge
* Fix incorrect password transformation in contrib/pgcrypto's DES crypt().Tom Lane2012-05-30
| | | | | | | | | | | | | | | | | | | | | | | | Overly tight coding caused the password transformation loop to stop examining input once it had processed a byte equal to 0x80. Thus, if the given password string contained such a byte (which is possible though not highly likely in UTF8, and perhaps also in other non-ASCII encodings), all subsequent characters would not contribute to the hash, making the password much weaker than it appears on the surface. This would only affect cases where applications used DES crypt() to encode passwords before storing them in the database. If a weak password has been created in this fashion, the hash will stop matching after this update has been applied, so it will be easy to tell if any passwords were unexpectedly weak. Changing to a different password would be a good idea in such a case. (Since DES has been considered inadequately secure for some time, changing to a different encryption algorithm can also be recommended.) This code, and the bug, are shared with at least PHP, FreeBSD, and OpenBSD. Since the other projects have already published their fixes, there is no point in trying to keep this commit private. This bug has been assigned CVE-2012-2143, and credit for its discovery goes to Rubin Xu and Joseph Bonneau.
* Lots of doc corrections.Robert Haas2012-04-23
| | | | Josh Kupershmidt
* Remove many -Wcast-qual warningsPeter Eisentraut2011-09-11
| | | | | | This addresses only those cases that are easy to fix by adding or moving a const qualifier or removing an unnecessary cast. There are many more complicated cases remaining.
* Remove unnecessary #include references, per pgrminclude script.Bruce Momjian2011-09-01
|
* Remove cvs keywords from all files.Magnus Hagander2010-09-20
|
* "Annual" pgcrypto update from Marko Kreen:Neil Conway2006-07-13
| | | | | | | | | | | | | | | | Few cleanups and couple of new things: - add SHA2 algorithm to older OpenSSL - add BIGNUM math to have public-key cryptography work on non-OpenSSL build. - gen_random_bytes() function The status of SHA2 algoritms and public-key encryption can now be changed to 'always available.' That makes pgcrypto functionally complete and unless there will be new editions of AES, SHA2 or OpenPGP standards, there is no major changes planned.
* Add CVS tag lines to files that were lacking them.Bruce Momjian2006-03-11
|
* Standard pgindent run for 8.1.Bruce Momjian2005-10-15
|
* Suppress signed-vs-unsigned-char warnings in contrib.Tom Lane2005-09-24
|
* Fix a bunch of 'old-style parameter declaration' warnings induced byTom Lane2004-10-25
| | | | writing 'foo()' rather than 'foo(void)'.
* Fix various recent build and regression-test problems in contrib/.Tom Lane2003-05-14
| | | | Includes fixes from Joe Conway.
* * include <endian.h> is not enough, include sys/types.h tooBruce Momjian2001-11-30
| | | | | | | | everywhere. At least it was now detected correctly. marko
* * When postgres.h does not define BYTE_ENDIAN pgcryptoBruce Momjian2001-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | produces garbage. I learned the hard way that #if UNDEFINED_1 == UNDEFINED_2 #error "gcc is idiot" #endif prints "gcc is idiot" ... Affected are MD5/SHA1 in internal library, and also HMAC-MD5/HMAC-SHA1/ crypt-md5 which use them. Blowfish is ok, also Rijndael on at least x86. Big thanks to Daniel Holtzman who send me a build log which contained warning: md5.c:246: warning: `X' defined but not used Yes, gcc is that helpful... Please apply this. -- marko
* Include sys/types.h in crypt-des.c. FreeBSD netinet/in.hBruce Momjian2001-11-20
| | | | | | | | needs it. Seems it is getting compileable... Marko Kreen
* New pgindent run with fixes suggested by Tom. Patch manually reviewed,Bruce Momjian2001-11-05
| | | | initdb/regression tests pass.
* Fix small problem Tom Lane found with pgindent run.Bruce Momjian2001-10-30
|
* Another pgindent run. Fixes enum indenting, and improves #endifBruce Momjian2001-10-28
| | | | spacing. Also adds space for one-line comments.
* pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian2001-10-25
| | | | tests pass.
* Fix some portability problems (get it to compile, at least, on HP's cc)Tom Lane2001-10-15
|
* Add missing pgcrypto file.Bruce Momjian2001-08-21