diff options
author | Richard Levitte <levitte@openssl.org> | 2001-10-24 23:21:12 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-10-24 23:21:12 +0200 |
commit | c2e4f17c1a0d4d5115c6ede9492de1615fe392ac (patch) | |
tree | 14dda5edeaebac01b4baa3aa026c40a784a44266 /crypto/symhacks.h | |
parent | Fix SSL handshake functions and SSL_clear() such that SSL_clear() (diff) | |
download | openssl-c2e4f17c1a0d4d5115c6ede9492de1615fe392ac.tar.xz openssl-c2e4f17c1a0d4d5115c6ede9492de1615fe392ac.zip |
Due to an increasing number of clashes between modern OpenSSL and
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.
Diffstat (limited to 'crypto/symhacks.h')
-rw-r--r-- | crypto/symhacks.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/crypto/symhacks.h b/crypto/symhacks.h index c7f39cfa81..b4eaa29e19 100644 --- a/crypto/symhacks.h +++ b/crypto/symhacks.h @@ -256,6 +256,45 @@ #undef X509v3_add_standard_extensions #define X509v3_add_standard_extensions oX509v3_add_standard_extensions +/* The following hacks is to make sure that the old des_ functions do not + clash with the new DES_ functions */ +#define des_options odes_options +#define des_ecb3_encrypt odes_ecb3_encrypt +#define des_cbc_cksum odes_cbc_cksum +#define des_cbc_encrypt odes_cbc_encrypt +#define des_ncbc_encrypt odes_ncbc_encrypt +#define des_xcbc_encrypt odes_xcbc_encrypt +#define des_3cbc_encrypt odes_3cbc_encrypt +#define des_cfb_encrypt odes_cfb_encrypt +#define des_ecb_encrypt odes_ecb_encrypt +#define des_encrypt odes_encrypt +#define des_encrypt2 odes_encrypt2 +#define des_encrypt3 odes_encrypt3 +#define des_decrypt3 odes_decrypt3 +#define des_ede3_cbc_encrypt odes_ede3_cbc_encrypt +#define des_ede3_cfb64_encrypt odes_ede3_cfb64_encrypt +#define des_ede3_ofb64_encrypt odes_ede3_ofb64_encrypt +#define des_xwhite_in2out odes_xwhite_in2out +#define des_enc_read odes_enc_read +#define des_enc_write odes_enc_write +#define des_fcrypt odes_fcrypt +#define des_crypt odes_crypt +#define crypt ocrypt +#define des_ofb_encrypt odes_ofb_encrypt +#define des_pcbc_encrypt odes_pcbc_encrypt +#define des_quad_cksum odes_quad_cksum +#define des_random_seed odes_random_seed +#define des_random_key odes_random_key +#define des_set_odd_parity odes_set_odd_parity +#define des_is_weak_key odes_is_weak_key +#define des_set_key odes_set_key +#define des_key_sched odes_key_sched +#define des_string_to_key odes_string_to_key +#define des_string_to_2keys odes_string_to_2keys +#define des_cfb64_encrypt odes_cfb64_encrypt +#define des_ofb64_encrypt odes_ofb64_encrypt + + #endif |