Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Stefan Schroepfer <scr@iis.fhg.de>
To: axp-list@redhat.com
Subject: Re: PGP on RH5.1/Alpha
Date: Wed, 12 May 1999 10:39:54 +0200	[thread overview]
Message-ID: <37393E5A.4DAA423A@iis.fhg.de> (raw)
In-Reply-To: Pine.LNX.4.04.9905111303500.18328-100000@simone.dashbit.com

[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]

Miller, Scott K. wrote:
> 
> Has anyone successfully compiled PGP5.0i on RH5.1?  pgpMD5.c appears to
> have problems.

That's what I did:

./lib/pgp/include/pgpUsuals.h:
forced typedef of word64 and int64 types to be unconditional

./apps/pgp/filter.c:
changed type of len in keyValidityOK () from int to size_t, which
lead to a compiler warning and --- more seriously to a SIGSEGV
during runtime when issuing a encryption command like
'pgpe -r scr@iis.fhg.de -sat bla.txt'

Regards,
Stefan Schroepfer


--- lib/pgp/include/pgpUsuals.h.orig    Sat Aug  9 22:44:58 1997
+++ lib/pgp/include/pgpUsuals.h Thu Jan 14 01:24:23 1999
@@ -66,13 +66,20 @@
 * IRIX uses ULONGLONG_MAX. Are there any other names for this?
 */
 
+  /*
 #ifndef HAVE64
 #if defined(ULONG_LONG_MAX) || defined (ULLONG_MAX) ||
defined(ULONGLONG_MAX)
+  */
 typedef unsigned long long word64;
 typedef long long int64;
 #define HAVE64 1
+  /*
 #endif
 #endif
+  */
 
 #include <string.h>     /* Prototype for memset */
 /*

--- apps/pgp/filter.c.orig      Sat Feb  7 20:04:41 1998
+++ apps/pgp/filter.c   Thu Jan 14 23:29:35 1999
@@ -269,7 +269,7 @@
     struct RingIterator *NameIter = NULL;
     union RingObject *name;
     Boolean OKToUse = FALSE, FoundName = FALSE;
-    int len = 0;
+    size_t len = 0;
     int trust;
     char *TempNameString = NULL;

  parent reply	other threads:[~1999-05-12  9:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-11 20:04 PGP on RH5.1/Alpha Miller, Scott K.
1999-05-11 21:23 ` mgraffam
1999-05-12  8:39 ` Stefan Schroepfer [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-05-11  6:59 Miller, Scott K.
1999-05-13 13:10 ` Konrad Podloucky
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox