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 >
Wrap
Text File
|
1994-09-16
|
4KB
|
108 lines
diff -cbr orig/src/crypto.c new/src/crypto.c
*** orig/src/crypto.c Sun Sep 04 20:14:22 1994
--- new/src/crypto.c Fri Sep 16 11:32:12 1994
***************
*** 1066,1071 ****
--- 1066,1072 ----
/* Copy the remainder from file f to file g */
copyfile (f, g, -1L);
+ fclose(f);
if (write_error(g)) {
fclose(g);
return -1;
***************
*** 1191,1196 ****
--- 1192,1198 ----
if ((g = fopen(keyfile,FOPRBIN)) == NULL) {
fprintf(pgpout,
LANG("\n\007Can't open key ring file '%s'\n"),keyfile);
+ fclose(f);
return -1;
}
fseek(g, fp, SEEK_SET);
***************
*** 1232,1239 ****
--- 1234,1244 ----
K0_SIGNATURE_BYTE, e, d, p, q,
u, n);
if (certificate_length < 0)
+ {
+ fclose(f);
return -1; /* error return from
make_signature_certificate() */
+ }
} /* end of scope for some buffers */
diff -cbr orig/src/keymgmt.c new/src/keymgmt.c
*** orig/src/keymgmt.c Fri Aug 26 20:44:28 1994
--- new/src/keymgmt.c Fri Sep 16 11:34:56 1994
***************
*** 1679,1684 ****
--- 1679,1685 ----
fclose(f);
savetempbak(tempring, ringfile);
failed = 0;
+ return 0; /* do not try to fclose(f) again below, f is already closed */
}
}
fclose(f); /* close key file */
diff -cbr orig/src/makefile new/src/makefile
*** orig/src/makefile Sun Sep 04 21:51:20 1994
--- new/src/makefile Fri Sep 16 11:58:38 1994
***************
*** 416,426 ****
LDFLAGS="-lposix -lbsd" \
CFLAGS="$(RSAINCDIR) -O2 -DSVR2 -DHIGHFIRST -DUNIX -DPORTABLE -DUSE_SELECT -DUPTON"
! # optimized version with 80386.S for emx 0.8e, OS/2 2.0 or DOS
os2:
$(MAKE) all PROJ=pgp.exe OBJS_EXT="_80386.o _zmatch.o" \
CC="gcc -Zomf" CFLAGS="$(RSAINCDIR) -O -DOS2 -DASM -DIDEA32" \
! ASM="gcc -Zomf -c" LD="gcc" LDFLAGS="-s pgp.def"
# DJGPP, DJ Delorie's port of GNU C to MS-DOA (thanks DJ!). Tested with dmake.
# You may have to rehack this -- I'm not good with makefiles.
--- 416,432 ----
LDFLAGS="-lposix -lbsd" \
CFLAGS="$(RSAINCDIR) -O2 -DSVR2 -DHIGHFIRST -DUNIX -DPORTABLE -DUSE_SELECT -DUPTON"
! # optimized version with 80386.S for OS/2 2.x
! # requires emx 0.8h (i.e. gcc 2.5.7 or later) and GNU make 3.71 for OS/2
os2:
+ # make rsaref first
+ $(MAKE) -C $(RSALIBDIR) all CC="gcc -Zomf" O="obj" \
+ RANLIB="echo" LIB="emxomfar" SRCLIB="rsaref.lib"
+ # make pgp now
$(MAKE) all PROJ=pgp.exe OBJS_EXT="_80386.o _zmatch.o" \
CC="gcc -Zomf" CFLAGS="$(RSAINCDIR) -O -DOS2 -DASM -DIDEA32" \
! ASM="gcc -Zomf -c" LD="gcc -Zomf -Zsys" LDFLAGS="-s pgp.def" \
! RSALIBS=$(RSALIBDIR)/rsaref.lib
# DJGPP, DJ Delorie's port of GNU C to MS-DOA (thanks DJ!). Tested with dmake.
# You may have to rehack this -- I'm not good with makefiles.
diff -cbr orig/src/pgp.c new/src/pgp.c
*** orig/src/pgp.c Mon Aug 29 21:13:12 1994
--- new/src/pgp.c Fri Sep 16 11:38:50 1994
***************
*** 1335,1340 ****
--- 1335,1341 ----
/* swap file names instead of just copying the file */
outfile = cipherfile;
cipherfile = NULL;
+ nested_info = FALSE;
break; /* no further processing */
}
/* Key ring. View it. */
diff -cbr orig/src/pgp.def new/src/pgp.def
*** orig/src/pgp.def Sun May 01 15:10:50 1994
--- new/src/pgp.def Fri Sep 16 11:36:46 1994
***************
*** 1,2 ****
NAME PGP WINDOWCOMPAT NEWFILES
! STACKSIZE 0x40000
--- 1,2 ----
NAME PGP WINDOWCOMPAT NEWFILES
! STACKSIZE 0x50000