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

Diff for /src/usr.bin/ssh/authfd.c between version 1.57 and 1.58

version 1.57, 2002/09/11 18:27:26 version 1.58, 2003/01/23 13:50:27
Line 499 
Line 499 
   
 int  int
 ssh_add_identity_constrained(AuthenticationConnection *auth, Key *key,  ssh_add_identity_constrained(AuthenticationConnection *auth, Key *key,
     const char *comment, u_int life)      const char *comment, u_int life, u_int confirm)
 {  {
         Buffer msg;          Buffer msg;
         int type, constrained = (life != 0);          int type, constrained = (life || confirm);
   
         buffer_init(&msg);          buffer_init(&msg);
   
Line 532 
Line 532 
                         buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_LIFETIME);                          buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_LIFETIME);
                         buffer_put_int(&msg, life);                          buffer_put_int(&msg, life);
                 }                  }
                   if (confirm != 0)
                           buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_CONFIRM);
         }          }
         if (ssh_request_reply(auth, &msg, &msg) == 0) {          if (ssh_request_reply(auth, &msg, &msg) == 0) {
                 buffer_free(&msg);                  buffer_free(&msg);
Line 545 
Line 547 
 int  int
 ssh_add_identity(AuthenticationConnection *auth, Key *key, const char *comment)  ssh_add_identity(AuthenticationConnection *auth, Key *key, const char *comment)
 {  {
         return ssh_add_identity_constrained(auth, key, comment, 0);          return ssh_add_identity_constrained(auth, key, comment, 0, 0);
 }  }
   
 /*  /*

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58