[BACK]Return to moduli.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/moduli.c between version 1.29 and 1.30

version 1.29, 2014/08/21 01:08:52 version 1.30, 2015/01/20 23:14:00
Line 37 
Line 37 
  * Second step: test primes' safety (processor intensive)   * Second step: test primes' safety (processor intensive)
  */   */
   
 #include <sys/param.h>  #include <sys/param.h>  /* MAX */
 #include <sys/types.h>  #include <sys/types.h>
   
 #include <openssl/bn.h>  #include <openssl/bn.h>
Line 50 
Line 50 
 #include <stdarg.h>  #include <stdarg.h>
 #include <time.h>  #include <time.h>
 #include <unistd.h>  #include <unistd.h>
   #include <limits.h>
   
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "dh.h"  #include "dh.h"
Line 443 
Line 444 
 write_checkpoint(char *cpfile, u_int32_t lineno)  write_checkpoint(char *cpfile, u_int32_t lineno)
 {  {
         FILE *fp;          FILE *fp;
         char tmp[MAXPATHLEN];          char tmp[PATH_MAX];
         int r;          int r;
   
         r = snprintf(tmp, sizeof(tmp), "%s.XXXXXXXXXX", cpfile);          r = snprintf(tmp, sizeof(tmp), "%s.XXXXXXXXXX", cpfile);
         if (r == -1 || r >= MAXPATHLEN) {          if (r == -1 || r >= PATH_MAX) {
                 logit("write_checkpoint: temp pathname too long");                  logit("write_checkpoint: temp pathname too long");
                 return;                  return;
         }          }

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30