home *** CD-ROM | disk | FTP | other *** search
/ The First Hungarian Family / The_First_Hungarian_Family_CD-ROM.bin / internet / offlread / security / pgp / patches.os2 < prev    next >
Text File  |  1994-09-16  |  4KB  |  108 lines

  1. diff -cbr orig/src/crypto.c new/src/crypto.c
  2. *** orig/src/crypto.c    Sun Sep 04 20:14:22 1994
  3. --- new/src/crypto.c    Fri Sep 16 11:32:12 1994
  4. ***************
  5. *** 1066,1071 ****
  6. --- 1066,1072 ----
  7.       /* Copy the remainder from file f to file g */
  8.       copyfile (f, g, -1L);
  9.   
  10. +      fclose(f);
  11.       if (write_error(g)) {
  12.           fclose(g);
  13.           return -1;
  14. ***************
  15. *** 1191,1196 ****
  16. --- 1192,1198 ----
  17.           if ((g = fopen(keyfile,FOPRBIN)) == NULL) {
  18.               fprintf(pgpout,
  19.      LANG("\n\007Can't open key ring file '%s'\n"),keyfile);
  20. +             fclose(f);
  21.               return -1;
  22.           }
  23.           fseek(g, fp, SEEK_SET);
  24. ***************
  25. *** 1232,1239 ****
  26. --- 1234,1244 ----
  27.                            K0_SIGNATURE_BYTE, e, d, p, q,
  28.                            u, n);
  29.           if (certificate_length < 0)
  30. +                 {
  31. +                         fclose(f);
  32.               return -1; /* error return from
  33.                         make_signature_certificate() */
  34. +         }
  35.   
  36.       }    /* end of scope for some buffers */
  37.   
  38. diff -cbr orig/src/keymgmt.c new/src/keymgmt.c
  39. *** orig/src/keymgmt.c    Fri Aug 26 20:44:28 1994
  40. --- new/src/keymgmt.c    Fri Sep 16 11:34:56 1994
  41. ***************
  42. *** 1679,1684 ****
  43. --- 1679,1685 ----
  44.           fclose(f);
  45.           savetempbak(tempring, ringfile);
  46.           failed = 0;
  47. +         return 0; /* do not try to fclose(f) again below, f is already closed */
  48.       }
  49.       }
  50.       fclose(f);            /* close key file */
  51. diff -cbr orig/src/makefile new/src/makefile
  52. *** orig/src/makefile    Sun Sep 04 21:51:20 1994
  53. --- new/src/makefile    Fri Sep 16 11:58:38 1994
  54. ***************
  55. *** 416,426 ****
  56.       LDFLAGS="-lposix -lbsd" \
  57.       CFLAGS="$(RSAINCDIR) -O2 -DSVR2 -DHIGHFIRST -DUNIX -DPORTABLE -DUSE_SELECT -DUPTON"
  58.   
  59. ! # optimized version with 80386.S for emx 0.8e, OS/2 2.0 or DOS
  60.   os2:
  61.       $(MAKE) all PROJ=pgp.exe OBJS_EXT="_80386.o _zmatch.o" \
  62.       CC="gcc -Zomf" CFLAGS="$(RSAINCDIR) -O -DOS2 -DASM -DIDEA32" \
  63. !     ASM="gcc -Zomf -c" LD="gcc" LDFLAGS="-s pgp.def"
  64.   
  65.   # DJGPP, DJ Delorie's port of GNU C to MS-DOA (thanks DJ!).  Tested with dmake.
  66.   # You may have to rehack this -- I'm not good with makefiles.
  67. --- 416,432 ----
  68.       LDFLAGS="-lposix -lbsd" \
  69.       CFLAGS="$(RSAINCDIR) -O2 -DSVR2 -DHIGHFIRST -DUNIX -DPORTABLE -DUSE_SELECT -DUPTON"
  70.   
  71. ! # optimized version with 80386.S for OS/2 2.x
  72. ! # requires emx 0.8h (i.e. gcc 2.5.7 or later) and GNU make 3.71 for OS/2
  73.   os2:
  74. + # make rsaref first
  75. +     $(MAKE) -C $(RSALIBDIR) all CC="gcc -Zomf" O="obj" \
  76. +     RANLIB="echo" LIB="emxomfar" SRCLIB="rsaref.lib"
  77. + # make pgp now
  78.       $(MAKE) all PROJ=pgp.exe OBJS_EXT="_80386.o _zmatch.o" \
  79.       CC="gcc -Zomf" CFLAGS="$(RSAINCDIR) -O -DOS2 -DASM -DIDEA32" \
  80. !     ASM="gcc -Zomf -c" LD="gcc -Zomf -Zsys" LDFLAGS="-s pgp.def" \
  81. !     RSALIBS=$(RSALIBDIR)/rsaref.lib
  82.   
  83.   # DJGPP, DJ Delorie's port of GNU C to MS-DOA (thanks DJ!).  Tested with dmake.
  84.   # You may have to rehack this -- I'm not good with makefiles.
  85. diff -cbr orig/src/pgp.c new/src/pgp.c
  86. *** orig/src/pgp.c    Mon Aug 29 21:13:12 1994
  87. --- new/src/pgp.c    Fri Sep 16 11:38:50 1994
  88. ***************
  89. *** 1335,1340 ****
  90. --- 1335,1341 ----
  91.           /* swap file names instead of just copying the file */
  92.           outfile = cipherfile;
  93.           cipherfile = NULL;
  94. +                 nested_info = FALSE;
  95.           break;        /* no further processing */
  96.           }
  97.           /* Key ring.  View it. */
  98. diff -cbr orig/src/pgp.def new/src/pgp.def
  99. *** orig/src/pgp.def    Sun May 01 15:10:50 1994
  100. --- new/src/pgp.def    Fri Sep 16 11:36:46 1994
  101. ***************
  102. *** 1,2 ****
  103.   NAME PGP WINDOWCOMPAT NEWFILES
  104. ! STACKSIZE 0x40000
  105. --- 1,2 ----
  106.   NAME PGP WINDOWCOMPAT NEWFILES
  107. ! STACKSIZE 0x50000
  108.