[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.65 and 1.66

version 1.65, 2003/01/23 13:50:27 version 1.66, 2003/03/05 22:33:43
Line 189 
Line 189 
 update_card(AuthenticationConnection *ac, int add, const char *id)  update_card(AuthenticationConnection *ac, int add, const char *id)
 {  {
         char *pin;          char *pin;
           int ret = -1;
   
         pin = read_passphrase("Enter passphrase for smartcard: ", RP_ALLOW_STDIN);          pin = read_passphrase("Enter passphrase for smartcard: ", RP_ALLOW_STDIN);
         if (pin == NULL)          if (pin == NULL)
Line 197 
Line 198 
         if (ssh_update_card(ac, add, id, pin)) {          if (ssh_update_card(ac, add, id, pin)) {
                 fprintf(stderr, "Card %s: %s\n",                  fprintf(stderr, "Card %s: %s\n",
                     add ? "added" : "removed", id);                      add ? "added" : "removed", id);
                 return 0;                  ret = 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;                  ret = -1;
         }          }
           xfree(pin);
           return ret;
 }  }
   
 static int  static int

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66