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

Diff for /src/usr.bin/ssh/ssh-add.c between version 1.158 and 1.159

version 1.158, 2020/10/18 11:32:02 version 1.159, 2021/01/11 02:12:58
Line 84 
Line 84 
 static int fingerprint_hash = SSH_FP_HASH_DEFAULT;  static int fingerprint_hash = SSH_FP_HASH_DEFAULT;
   
 /* Default lifetime (0 == forever) */  /* Default lifetime (0 == forever) */
 static long lifetime = 0;  static int lifetime = 0;
   
 /* User has to confirm key use */  /* User has to confirm key use */
 static int confirm = 0;  static int confirm = 0;
Line 365 
Line 365 
                             filename, comment);                              filename, comment);
                         if (lifetime != 0) {                          if (lifetime != 0) {
                                 fprintf(stderr,                                  fprintf(stderr,
                                     "Lifetime set to %ld seconds\n", lifetime);                                      "Lifetime set to %d seconds\n", lifetime);
                         }                          }
                         if (confirm != 0) {                          if (confirm != 0) {
                                 fprintf(stderr, "The user must confirm "                                  fprintf(stderr, "The user must confirm "
Line 420 
Line 420 
                 fprintf(stderr, "Certificate added: %s (%s)\n", certpath,                  fprintf(stderr, "Certificate added: %s (%s)\n", certpath,
                     private->cert->key_id);                      private->cert->key_id);
                 if (lifetime != 0) {                  if (lifetime != 0) {
                         fprintf(stderr, "Lifetime set to %ld seconds\n",                          fprintf(stderr, "Lifetime set to %d seconds\n",
                             lifetime);                              lifetime);
                 }                  }
                 if (confirm != 0) {                  if (confirm != 0) {
Line 603 
Line 603 
                             sshkey_type(keys[i]), fp);                              sshkey_type(keys[i]), fp);
                         if (lifetime != 0) {                          if (lifetime != 0) {
                                 fprintf(stderr,                                  fprintf(stderr,
                                     "Lifetime set to %ld seconds\n", lifetime);                                      "Lifetime set to %d seconds\n", lifetime);
                         }                          }
                         if (confirm != 0) {                          if (confirm != 0) {
                                 fprintf(stderr, "The user must confirm "                                  fprintf(stderr, "The user must confirm "

Legend:
Removed from v.1.158  
changed lines
  Added in v.1.159