Remove old DES API Includes VMS fixes from Richard. Includes Kurt's destest fixes (RT 1290). Closes tickets 1290 and 1291 Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
Dead code removal; #if 0 from crypto/des Reviewed-by: Andy Polyakov <appro@openssl.org>
Run util/openssl-format-source -v -c . Reviewed-by: Tim Hudson <tjh@openssl.org>
Further comment amendments to preserve formatting prior to source reformat Reviewed-by: Tim Hudson <tjh@openssl.org>
Version skew reduction: trivia (I hope).
Include openssl/crypto.h first in several other files so FIPS renaming is picked up.
Fix from stable branch.
Add the mapping of des_random_seed() for 0.9.6 compatibility. Make sure DES_cblock is defined at all times (meaning one shouldn't include openssl/des_old.h directly any more).
Merge in DES changed from 0.9.7-stable.
Change des_old.c to use types prefixed with _ossl_old_des_.
With the changed des_old API, let's complete the work by renaming the functions in ui_compat. This gave reason to rework that part more thoroughly, so here are the changes made: 1. Add DES_read_password() and DES_read_2passwords() with the same functionality as the corresponding old des_ functions, as a convenience to the users. 2. Add UI_UTIL_read_pw_string() and UI_UTIL_read_pw() with the functionality from des_read_pw_string() and des_read_pw(), again as a concenience to the users. 3. Rename des_read_password(), des_read_2passwords(), des_read_pw_string() and des_read_pw() by changing des_ to _ossl_old_des_, and add the usual mapping macros. 4. Move the implementation of des_read_password() and des_read_2passwords() to the des directory, since they are tightly tied to DES anyway. This change was inspired by a patch from Assar Westerlund <assar@sics.se>: There are some functions that didn't get the kick-away-old-des-and- replace-des-with-DES action. Here's a patch that adds DES_ and des_ (in des_old.h) versions of des_read_pw_string et al. This patch includes some of the first des_old.h semi-colon macro fixes that I've already sent.
Apply three patches from Assar Westerlund <assar@kth.se>: This patch makes the macros in des_old.h actually pretend to be functions. There's no reason not to define _ossl_old_crypt when using PERL5/FreeBSD/darwin/Next, since it makes using crypt and including des.h break. Here's a trivial patch. This patch fixes some of the typos used in macro names in des_old.h and the number of arguments for some of them.
I got a request to make the "old des" symbols more closely tied to OpenSSL. Adding '_ossl' in the name seems to be a good way to do this.
To avoid all kinds of link-level clashes, rename all old des_* functions to _old_des_*.
Patches to make OpenSSL compilable on MacOS/X. Submitted by Pier Fumagalli <pier@betaversion.org>
des_old.h doesn't really need to include des.h, so don't. That will avoid clashes with other code that have their own DES_ functions but really only use OpenSSL's old des_ functions.
Fix warning.
filenames are des_old.[ch], not des.comp*
Remove DES_random_seed() but retain des_random_seed() for now. Change the docs to reflect this change and correct libeay.num.
Have the removal warnings very high up in the source.