summaryrefslogtreecommitdiff
path: root/security/pgp2/patches/patch-aa
blob: 55c80726c553501145f9278e241c2da3c669ccb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
$NetBSD: patch-aa,v 1.4 1998/08/07 11:13:45 agc Exp $

--- fileio.h.orig	Sat Jan  6 14:46:36 1996
+++ fileio.h	Wed Mar 18 21:35:20 1998
@@ -21,15 +21,6 @@
 #define FOPWPBIN	"w+b","ctx=stm"
 #else
 #ifdef UNIX
-/*
- * Directory for system-wide files.  Must end in a /, ready for
- * dumb appending of the filename.  (If not defined, it's not used.)
- */
-#ifdef LINUX
-#  define PGP_SYSTEM_DIR "/var/lib/pgp/"
-#else
-#  define PGP_SYSTEM_DIR "/usr/local/lib/pgp/"
-#endif
 #define FOPRBIN		"r"
 #define FOPRTXT		"r"
 #define FOPWBIN		"w"
--- md5.c.orig	Sat Jan  6 15:21:09 1996
+++ md5.c	Wed Mar 18 21:36:42 1998
@@ -15,6 +15,7 @@
  * will fill a supplied 16-byte array with the digest.
  */
 #include <string.h>		/* for memcpy() */
+#include "usuals.h"
 #include "md5.h"
 
 #ifndef HIGHFIRST
--- rsaglue2.c.orig	Tue Jan  2 09:17:27 1996
+++ rsaglue2.c	Wed Mar 18 21:35:20 1998
@@ -52,9 +52,8 @@
 Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.\n\
 Distributed by the Massachusetts Institute of Technology.\n");
 
-#include <global.h>
-#include <rsaref.h>
-#include <rsa.h>
+#include <rsaref/rsaref.h>
+#include <rsaref/rsa.h>
 /*
  * The functions we call in rsa.h are:
  *
--- usuals.h.orig	Fri Sep 15 08:18:52 1995
+++ usuals.h	Wed Mar 18 21:35:39 1998
@@ -3,6 +3,13 @@
 #ifndef USUALS /* Assures no redefinitions of usual types...*/
 #define USUALS
 
+#ifdef __NetBSD__
+#include <sys/types.h>
+#if BYTE_ORDER == BIG_ENDIAN
+#define HIGHFIRST
+#endif
+#endif
+
 typedef unsigned char boolean;	/* values are TRUE or FALSE */
 typedef unsigned char byte;	/* values are 0-255 */
 typedef byte *byteptr;	/* pointer to byte */