From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fc31d2e7e7f2b259 X-Google-Attributes: gidfee84,public From: Masui Kenji Subject: Re: Question: Does anyone run APOP under qpopper2.3 on Dec Alpha 3.2 Date: 1997/07/09 Message-ID: #1/1 X-Deja-AN: 255730459 References: <5pugl7$luv$1@nntp1.ba.best.com> Organization: Dept. of Computer Science, Tokyo Institute of Technology, Japan Newsgroups: comp.unix.osf.osf1 pcm@best.com (Tricia McCarthy) writes: > Thu Jun 12 13:48:20 1997 [11014] tmccarth@sunsite.berkeley.edu: -ERR authentication failure > > Rather than go into all the endless details, I thought I would ask if anyone > uses APOP on a Dec Alpha. I made qpopper on DigitalUnix 4.0a. This error is due to variable size mismatch in making a calculation of MD5. On a ordinary system, sizeof(int) = sizeof(long) = 4. But Digital Unix adopts LP64 architecture. So you cannot use 'long' to represent 4bytes data. The fix is very simple. Apply the following patch. Good luck! *** md5.h.org Sat Mar 29 13:30:36 1997 --- md5.h Tue Jun 24 17:48:21 1997 *************** *** 22,28 **** --- 22,32 ---- typedef unsigned short int UINT2; /* UINT4 defines a four byte word */ + #ifdef __alpha + typedef unsigned int UINT4; + #else typedef unsigned long int UINT4; + #endif /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it --- Masui Kenji Tokyo Institute of Technology Department of Computer Science Graduation School of Information Science and Engeneering Yonezaki laboratory