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

Diff for /src/usr.bin/ssh/ssh-keygen.c between version 1.307 and 1.308

version 1.307, 2017/07/07 03:53:12 version 1.308, 2017/11/03 05:14:04
Line 1816 
Line 1816 
                     s, s + 4, s + 6, s + 8, s + 10, s + 12);                      s, s + 4, s + 6, s + 8, s + 10, s + 12);
                 break;                  break;
         default:          default:
                 fatal("Invalid certificate time format %s", s);                  fatal("Invalid certificate time format \"%s\"", s);
         }          }
   
         memset(&tm, 0, sizeof(tm));          memset(&tm, 0, sizeof(tm));
Line 1849 
Line 1849 
   
         /*          /*
          * from:to, where           * from:to, where
          * from := [+-]timespec | YYYYMMDD | YYYYMMDDHHMMSS           * from := [+-]timespec | YYYYMMDD | YYYYMMDDHHMMSS | "always"
          *   to := [+-]timespec | YYYYMMDD | YYYYMMDDHHMMSS           *   to := [+-]timespec | YYYYMMDD | YYYYMMDDHHMMSS | "forever"
          */           */
         from = xstrdup(timespec);          from = xstrdup(timespec);
         to = strchr(from, ':');          to = strchr(from, ':');
Line 1860 
Line 1860 
   
         if (*from == '-' || *from == '+')          if (*from == '-' || *from == '+')
                 cert_valid_from = parse_relative_time(from, now);                  cert_valid_from = parse_relative_time(from, now);
           else if (strcmp(from, "always") == 0)
                   cert_valid_from = 0;
         else          else
                 cert_valid_from = parse_absolute_time(from);                  cert_valid_from = parse_absolute_time(from);
   
         if (*to == '-' || *to == '+')          if (*to == '-' || *to == '+')
                 cert_valid_to = parse_relative_time(to, now);                  cert_valid_to = parse_relative_time(to, now);
           else if (strcmp(to, "forever") == 0)
                   cert_valid_to = ~(u_int64_t)0;
         else          else
                 cert_valid_to = parse_absolute_time(to);                  cert_valid_to = parse_absolute_time(to);
   

Legend:
Removed from v.1.307  
changed lines
  Added in v.1.308