home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0679.ZIP / CCE_0679.PD / DES301 / DIFFS < prev    next >
Text File  |  1993-11-10  |  3KB  |  141 lines

  1. diff -wu ./des.c g:\des3/des.c
  2. --- ./des.c    Fri Oct  8 02:35:08 1993
  3. +++ g:\des3/des.c    Mon Nov  8 16:55:16 1993
  4. @@ -44,6 +44,13 @@
  5.  #define EXIT(a) exit(a)
  6.  #endif
  7.  
  8. +#ifdef atarist
  9. +#include <stdlib.h>
  10. +#include <lib.h> /* __open_stat, __OPEN_INDEX() */
  11. +#include <ioctl.h> /* RAW, CRMOD, ECHO */
  12. +long  _stksize = 32 * 1024;
  13. +#endif
  14. +
  15.  #define BUFSIZE (8*1024)
  16.  #define VERIFY  1
  17.  #define KEYSIZ    8
  18. @@ -72,6 +79,11 @@
  19.      struct stat ins,outs;
  20.      char *p;
  21.  
  22. +#ifdef atarist
  23. +    __open_stat[__OPEN_INDEX(fileno(stdout))].flags = ECHO|CRMOD|RAW;
  24. +    __open_stat[__OPEN_INDEX(fileno(stderr))].flags = ECHO|CRMOD|RAW;
  25. +#endif
  26. +
  27.      cflag=eflag=dflag=kflag=hflag=bflag=fflag=sflag=uflag=flag3=0,error=0;
  28.      bzero(key,sizeof(key));
  29.  
  30. @@ -185,12 +197,12 @@
  31.  
  32.      if (    (in != NULL) &&
  33.          (out != NULL) &&
  34. -#ifndef MSDOS
  35. +#if !(defined(MSDOS) || defined(atarist))
  36.          (stat(in,&ins) != -1) &&
  37.          (stat(out,&outs) != -1) &&
  38.          (ins.st_dev == outs.st_dev) &&
  39.          (ins.st_ino == outs.st_ino))
  40. -#else /* MSDOS */
  41. +#else /* MSDOS, atarist */
  42.          (strcmp(in,out) == 0))
  43.  #endif
  44.              {
  45. @@ -235,6 +247,12 @@
  46.          setmode(fileno(DES_OUT),O_BINARY);
  47.      }
  48.  #endif
  49. +#ifdef atarist
  50. +    if (!(uflag && dflag))
  51. +        DES_IN->_flag  |= _IOBIN;
  52. +    if (!(uflag && eflag))
  53. +        DES_OUT->_flag |= _IOBIN;
  54. +#endif
  55.  
  56.      doencryption();
  57.      fclose(DES_IN);
  58. diff -wu ./enc_read.c g:\des3/enc_read.c
  59. --- ./enc_read.c    Thu Oct  7 06:38:38 1993
  60. +++ g:\des3/enc_read.c    Mon Nov  8 16:10:22 1993
  61. @@ -1,7 +1,13 @@
  62.  /* enc_read.c */
  63.  /* Copyright (C) 1993 Eric Young - see README for more details */
  64. +
  65. +/* !! takes more than 32kB of stacksize */
  66. +
  67.  #include <errno.h>
  68.  #include "des_locl.h"
  69. +#ifdef atarist
  70. +#include <unistd.h>
  71. +#endif
  72.  
  73.  /* This has some uglies in it but it works - even over sockets. */
  74.  extern int errno;
  75. @@ -139,4 +145,3 @@
  76.          }
  77.      return(num);
  78.      }
  79. -
  80. diff -wu ./enc_writ.c g:\des3/enc_writ.c
  81. --- ./enc_writ.c    Thu Oct  7 06:37:02 1993
  82. +++ g:\des3/enc_writ.c    Mon Nov  8 16:56:20 1993
  83. @@ -1,7 +1,14 @@
  84.  /* enc_writ.c */
  85.  /* Copyright (C) 1993 Eric Young - see README for more details */
  86. +
  87. +/* !! takes more than 16kB of stacksize */
  88. +
  89.  #include <errno.h>
  90.  #include "des_locl.h"
  91. +#ifdef atarist
  92. +#include <unistd.h>
  93. +#include <time.h>
  94. +#endif
  95.  
  96.  int des_enc_write(fd,buf,len,sched,iv)
  97.  int fd;
  98. diff -wu ./rand_key.c g:\des3/rand_key.c
  99. --- ./rand_key.c    Thu Oct  7 06:37:26 1993
  100. +++ g:\des3/rand_key.c    Mon Nov  8 16:55:58 1993
  101. @@ -1,6 +1,10 @@
  102.  /* rand_key.c */
  103.  /* Copyright (C) 1993 Eric Young - see README for more details */
  104.  #include "des_locl.h"
  105. +#ifdef atarist
  106. +#include <unistd.h>
  107. +#include <time.h>
  108. +#endif
  109.  
  110.  int des_random_key(ret)
  111.  des_cblock ret;
  112. diff -wu ./read_pwd.c g:\des3/read_pwd.c
  113. --- ./read_pwd.c    Thu Oct  7 06:37:30 1993
  114. +++ g:\des3/read_pwd.c    Mon Nov  8 15:50:22 1993
  115. @@ -45,7 +45,11 @@
  116.  #endif
  117.  
  118.  static void read_till_nl();
  119. +#ifdef __STDC__
  120. +static int read_pw(char *buf,char *buff,int size,char *prompt,int verify);
  121. +#else
  122.  static int read_pw();
  123. +#endif
  124.  static void recsig();
  125.  static void pushsig();
  126.  static void popsig();
  127. diff -wu ./speed.c g:\des3/speed.c
  128. --- ./speed.c    Thu Oct  7 06:33:06 1993
  129. +++ g:\des3/speed.c    Mon Nov  8 15:51:18 1993
  130. @@ -44,6 +44,9 @@
  131.  
  132.  #define BUFSIZE    ((long)1024*8)
  133.  long run=0;
  134. +#ifdef atarist
  135. +    long _stksize = 16 * 1024;
  136. +#endif
  137.  
  138.  #ifdef SIGALRM
  139.  #ifdef __STDC__
  140.  
  141.