96881f1b73
- fix build, dunno if it works
61 lines
2.1 KiB
Plaintext
61 lines
2.1 KiB
Plaintext
$OpenBSD: patch-stel_sub_c,v 1.1 2001/09/29 21:27:50 naddy Exp $
|
|
--- stel/sub.c.orig Fri Apr 26 18:29:26 1996
|
|
+++ stel/sub.c Sat Sep 29 22:55:22 2001
|
|
@@ -515,10 +515,10 @@ unsigned char *rndstr;
|
|
memcpy(sessionkeyhash, digest2, 8);
|
|
|
|
#ifdef DESCORE
|
|
- descore_ecb_encrypt(sessionkeyhash, sessionkeyhash, tmpsched, ENCRYPT);
|
|
+ descore_ecb_encrypt(sessionkeyhash, sessionkeyhash, tmpsched, DES_ENCRYPT);
|
|
#else
|
|
des_ecb_encrypt((des_cblock *)sessionkeyhash,
|
|
- (des_cblock *)sessionkeyhash, tmpsched, ENCRYPT);
|
|
+ (des_cblock *)sessionkeyhash, tmpsched, DES_ENCRYPT);
|
|
#endif
|
|
bzero(tmpsched, sizeof(tmpsched));
|
|
|
|
@@ -984,17 +984,17 @@ char *authbuf;
|
|
/* build K_E(sessionkeyhash) */
|
|
memcpy(cookie, sessionkeyhash, 8);
|
|
#ifdef DESCORE
|
|
- descore_ecb_encrypt(cookie, cookie, authsched, ENCRYPT);
|
|
+ descore_ecb_encrypt(cookie, cookie, authsched, DES_ENCRYPT);
|
|
#else
|
|
des_ecb_encrypt((des_cblock *)cookie, (des_cblock *)cookie,
|
|
- authsched, ENCRYPT);
|
|
+ authsched, DES_ENCRYPT);
|
|
#endif
|
|
if (side == SERVER_SIDE) /* encrypt twice */
|
|
#ifdef DESCORE
|
|
- descore_ecb_encrypt(cookie, cookie, authsched, ENCRYPT);
|
|
+ descore_ecb_encrypt(cookie, cookie, authsched, DES_ENCRYPT);
|
|
#else
|
|
des_ecb_encrypt((des_cblock *)cookie, (des_cblock *)cookie,
|
|
- authsched, ENCRYPT);
|
|
+ authsched, DES_ENCRYPT);
|
|
#endif
|
|
|
|
if (logging) {
|
|
@@ -1053,17 +1053,17 @@ char *authbuf;
|
|
|
|
if (side == CLIENT_SIDE) /* decrypt it once */
|
|
#ifdef DESCORE
|
|
- descore_ecb_encrypt(othercookie, othercookie, authsched, DECRYPT);
|
|
+ descore_ecb_encrypt(othercookie, othercookie, authsched, DES_DECRYPT);
|
|
#else
|
|
des_ecb_encrypt((des_cblock *)othercookie,
|
|
- (des_cblock *)othercookie, authsched, DECRYPT);
|
|
+ (des_cblock *)othercookie, authsched, DES_DECRYPT);
|
|
#endif
|
|
else if (side == SERVER_SIDE) /* encrypt once more */
|
|
#ifdef DESCORE
|
|
- descore_ecb_encrypt(othercookie, othercookie, authsched, ENCRYPT);
|
|
+ descore_ecb_encrypt(othercookie, othercookie, authsched, DES_ENCRYPT);
|
|
#else
|
|
des_ecb_encrypt((des_cblock *)othercookie,
|
|
- (des_cblock *)othercookie, authsched, ENCRYPT);
|
|
+ (des_cblock *)othercookie, authsched, DES_ENCRYPT);
|
|
#endif
|
|
|
|
if (logging) {
|