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

Diff for /src/usr.bin/signify/signify.c between version 1.1 and 1.2

version 1.1, 2013/12/31 03:03:32 version 1.2, 2013/12/31 03:08:48
Line 65 
Line 65 
 usage(void)  usage(void)
 {  {
         fprintf(stderr, "usage: %s [-P] [-i input] [-p pubkey] [-s seckey] "          fprintf(stderr, "usage: %s [-P] [-i input] [-p pubkey] [-s seckey] "
             "generate|sign|verify", __progname);              "generate|sign|verify\n", __progname);
         exit(1);          exit(1);
 }  }
   
Line 324 
Line 324 
   
         rounds = 42;          rounds = 42;
   
         while ((ch = getopt(argc, argv, "I:NO:P:S:")) != -1) {          while ((ch = getopt(argc, argv, "I:NO:P:S:V:")) != -1) {
                 switch (ch) {                  switch (ch) {
                 case 'I':                  case 'I':
                         inputfile = optarg;                          inputfile = optarg;
Line 349 
Line 349 
                         break;                          break;
                 }                  }
         }          }
           argc -= optind;
         if (argc != 0)          if (argc != 0)
                 usage();                  usage();
   
         if (inputfile && !sigfile) {          if (inputfile && !sigfile) {
                 if (snprintf(sigfilebuf, sizeof(sigfilebuf), "%s.sig",                  if (snprintf(sigfilebuf, sizeof(sigfilebuf), "%s.sig",
                     inputfile) >= sizeof(sigfile))                      inputfile) >= sizeof(sigfilebuf))
                         errx(1, "path too long");                          errx(1, "path too long");
                 sigfile = sigfilebuf;                  sigfile = sigfilebuf;
         }          }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2