[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.46 and 1.47

version 1.46, 2001/10/02 08:38:50 version 1.47, 2001/12/19 07:18:56
Line 84 
Line 84 
   
         key_free(public);          key_free(public);
         xfree(comment);          xfree(comment);
   
         return ret;          return ret;
 }  }
   
Line 154 
Line 154 
   
         xfree(comment);          xfree(comment);
         key_free(private);          key_free(private);
   
         return ret;          return ret;
 }  }
   
Line 163 
Line 163 
 {  {
         if (ssh_update_card(ac, add, id)) {          if (ssh_update_card(ac, add, id)) {
                 fprintf(stderr, "Card %s: %s\n",                  fprintf(stderr, "Card %s: %s\n",
                      add ? "added" : "removed", id);                      add ? "added" : "removed", id);
                 return 0;                  return 0;
         } else {          } else {
                 fprintf(stderr, "Could not %s card: %s\n",                  fprintf(stderr, "Could not %s card: %s\n",
                      add ? "add" : "remove", id);                      add ? "add" : "remove", id);
                 return -1;                  return -1;
         }          }
 }  }
Line 182 
Line 182 
   
         for (version = 1; version <= 2; version++) {          for (version = 1; version <= 2; version++) {
                 for (key = ssh_get_first_identity(ac, &comment, version);                  for (key = ssh_get_first_identity(ac, &comment, version);
                      key != NULL;                      key != NULL;
                      key = ssh_get_next_identity(ac, &comment, version)) {                      key = ssh_get_next_identity(ac, &comment, version)) {
                         had_identities = 1;                          had_identities = 1;
                         if (do_fp) {                          if (do_fp) {
                                 fp = key_fingerprint(key, SSH_FP_MD5,                                  fp = key_fingerprint(key, SSH_FP_MD5,
Line 238 
Line 238 
                 fprintf(stderr, "Could not open a connection to your authentication agent.\n");                  fprintf(stderr, "Could not open a connection to your authentication agent.\n");
                 exit(1);                  exit(1);
         }          }
         while ((ch = getopt(argc, argv, "lLdDe:s:")) != -1) {          while ((ch = getopt(argc, argv, "lLdDe:s:")) != -1) {
                 switch (ch) {                  switch (ch) {
                 case 'l':                  case 'l':
                 case 'L':                  case 'L':
Line 257 
Line 257 
                         sc_reader_id = optarg;                          sc_reader_id = optarg;
                         break;                          break;
                 case 'e':                  case 'e':
                         deleting = 1;                          deleting = 1;
                         sc_reader_id = optarg;                          sc_reader_id = optarg;
                         break;                          break;
                 default:                  default:

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47