This is one of two messages addressing a fix to the sha1 code in PPP to enable it to work on 64-bit systems. The fix addressed in the current message is for the pppd component; the corresponding fix in the other message is for the linux/mppe component. Both sets of changes are required. Without either I was encountering a segfault. With only the pppd changes, I got a kernel panic. With both sets of changes, I am able to use pptp with ppp to connect with a Microsoft server. The major set of changes was to convert long data types to data types with explicit length. Basically, I changed longs to 32-bit data values and unsigned chars to 8-bit values. I also included a wrapper sha1() function that I found in later versions of the code by the author, Steve Reid. This is my first submittal, so I apologize if I am not submitting this properly. I followed the advice I was given and read the submittal guidelines at gnu.org. However, after running diff -u against the ppp component I pulled out of cvs and against my updates, I wasn't able to run patch successfully against the result. I asked on the help.gnu.utils newsgroup but received no reply and I'm going out of town for the rest of the week. Because of this, I'm including both the diff and my modified sources in the attached file. I will gladly redo this when I return if there is a better way to do it. -- Guy Rouillier