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/mdc2 | |
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/mdc2')
-rw-r--r-- | crypto/mdc2/mdc2.h | 2 | ||||
-rw-r--r-- | crypto/mdc2/mdc2dgst.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/crypto/mdc2/mdc2.h b/crypto/mdc2/mdc2.h index c4a81831bf..793a8a0f13 100644 --- a/crypto/mdc2/mdc2.h +++ b/crypto/mdc2/mdc2.h @@ -76,7 +76,7 @@ typedef struct mdc2_ctx_st { int num; unsigned char data[MDC2_BLOCK]; - des_cblock h,hh; + DES_cblock h,hh; int pad_type; /* either 1 or 2, default 1 */ } MDC2_CTX; diff --git a/crypto/mdc2/mdc2dgst.c b/crypto/mdc2/mdc2dgst.c index 88dd4e250b..32daa9b0da 100644 --- a/crypto/mdc2/mdc2dgst.c +++ b/crypto/mdc2/mdc2dgst.c @@ -125,7 +125,7 @@ static void mdc2_body(MDC2_CTX *c, const unsigned char *in, unsigned int len) register DES_LONG tin0,tin1; register DES_LONG ttin0,ttin1; DES_LONG d[2],dd[2]; - des_key_schedule k; + DES_key_schedule k; unsigned char *p; unsigned int i; @@ -136,13 +136,13 @@ static void mdc2_body(MDC2_CTX *c, const unsigned char *in, unsigned int len) c->h[0]=(c->h[0]&0x9f)|0x40; c->hh[0]=(c->hh[0]&0x9f)|0x20; - des_set_odd_parity(&c->h); - des_set_key_unchecked(&c->h,&k); - des_encrypt1(d,&k,1); + DES_set_odd_parity(&c->h); + DES_set_key_unchecked(&c->h,&k); + DES_encrypt1(d,&k,1); - des_set_odd_parity(&c->hh); - des_set_key_unchecked(&c->hh,&k); - des_encrypt1(dd,&k,1); + DES_set_odd_parity(&c->hh); + DES_set_key_unchecked(&c->hh,&k); + DES_encrypt1(dd,&k,1); ttin0=tin0^dd[0]; ttin1=tin1^dd[1]; |