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

Diff for /src/usr.bin/ssh/ssh.c between version 1.125 and 1.126

version 1.125, 2001/06/22 23:35:21 version 1.126, 2001/06/23 15:12:21
Line 140 
Line 140 
   
 /* Prints a help message to the user.  This function never returns. */  /* Prints a help message to the user.  This function never returns. */
   
 void  static void
 usage(void)  usage(void)
 {  {
         fprintf(stderr, "Usage: %s [options] host [command]\n", __progname);          fprintf(stderr, "Usage: %s [options] host [command]\n", __progname);
Line 190 
Line 190 
  * Connects to the given host using rsh (or prints an error message and exits   * Connects to the given host using rsh (or prints an error message and exits
  * if rsh is not available).  This function never returns.   * if rsh is not available).  This function never returns.
  */   */
 void  static void
 rsh_connect(char *host, char *user, Buffer * command)  rsh_connect(char *host, char *user, Buffer * command)
 {  {
         char *args[10];          char *args[10];
Line 224 
Line 224 
         exit(1);          exit(1);
 }  }
   
 int     ssh_session(void);  static int ssh_session(void);
 int     ssh_session2(void);  static int ssh_session2(void);
 void    load_public_identity_files(void);  static void load_public_identity_files(void);
   
 /*  /*
  * Main program for the ssh client.   * Main program for the ssh client.
Line 721 
Line 721 
         return exit_status;          return exit_status;
 }  }
   
 void  static void
 x11_get_proto(char *proto, int proto_len, char *data, int data_len)  x11_get_proto(char *proto, int proto_len, char *data, int data_len)
 {  {
         char line[512];          char line[512];
Line 760 
Line 760 
         }          }
 }  }
   
 void  static void
 ssh_init_forwarding(void)  ssh_init_forwarding(void)
 {  {
         int success = 0;          int success = 0;
Line 794 
Line 794 
         }          }
 }  }
   
 void  static void
 check_agent_present(void)  check_agent_present(void)
 {  {
         if (options.forward_agent) {          if (options.forward_agent) {
Line 807 
Line 807 
         }          }
 }  }
   
 int  static int
 ssh_session(void)  ssh_session(void)
 {  {
         int type;          int type;
Line 945 
Line 945 
             options.escape_char : SSH_ESCAPECHAR_NONE, 0);              options.escape_char : SSH_ESCAPECHAR_NONE, 0);
 }  }
   
 void  static void
 client_subsystem_reply(int type, int plen, void *ctxt)  client_subsystem_reply(int type, int plen, void *ctxt)
 {  {
         int id, len;          int id, len;
Line 960 
Line 960 
                     len, buffer_ptr(&command), id);                      len, buffer_ptr(&command), id);
 }  }
   
 void  static void
 ssh_session2_callback(int id, void *arg)  ssh_session2_callback(int id, void *arg)
 {  {
         int len;          int len;
Line 1036 
Line 1036 
         packet_set_interactive(interactive);          packet_set_interactive(interactive);
 }  }
   
 int  static int
 ssh_session2_command(void)  ssh_session2_command(void)
 {  {
         Channel *c;          Channel *c;
Line 1083 
Line 1083 
         return c->self;          return c->self;
 }  }
   
 int  static int
 ssh_session2(void)  ssh_session2(void)
 {  {
         int id;          int id;
Line 1102 
Line 1102 
             options.escape_char : SSH_ESCAPECHAR_NONE, id);              options.escape_char : SSH_ESCAPECHAR_NONE, id);
 }  }
   
 void  static void
 load_public_identity_files(void)  load_public_identity_files(void)
 {  {
         char *filename;          char *filename;

Legend:
Removed from v.1.125  
changed lines
  Added in v.1.126