[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.71 and 1.71.2.2

version 1.71, 2005/03/10 22:01:06 version 1.71.2.2, 2006/02/03 02:53:45
Line 145 
Line 145 
                 /* clear passphrase since it did not work */                  /* clear passphrase since it did not work */
                 clear_pass();                  clear_pass();
                 snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ",                  snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ",
                    comment);                      comment);
                 for (;;) {                  for (;;) {
                         pass = read_passphrase(msg, RP_ALLOW_STDIN);                          pass = read_passphrase(msg, RP_ALLOW_STDIN);
                         if (strcmp(pass, "") == 0) {                          if (strcmp(pass, "") == 0) {
Line 312 
Line 312 
         char *sc_reader_id = NULL;          char *sc_reader_id = NULL;
         int i, ch, deleting = 0, ret = 0;          int i, ch, deleting = 0, ret = 0;
   
           /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
           sanitise_stdfd();
   
         SSLeay_add_all_algorithms();          SSLeay_add_all_algorithms();
   
         /* At first, get a connection to the authentication agent. */          /* At first, get a connection to the authentication agent. */
         ac = ssh_get_authentication_connection();          ac = ssh_get_authentication_connection();
         if (ac == NULL) {          if (ac == NULL) {
                 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(2);                  exit(2);
         }          }
         while ((ch = getopt(argc, argv, "lLcdDxXe:s:t:")) != -1) {          while ((ch = getopt(argc, argv, "lLcdDxXe:s:t:")) != -1) {

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.71.2.2