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

Diff for /src/usr.bin/ssh/sshconnect2.c between version 1.75 and 1.76

version 1.75, 2001/06/23 02:34:33 version 1.76, 2001/06/23 15:12:21
Line 72 
Line 72 
   
 Kex *xxx_kex = NULL;  Kex *xxx_kex = NULL;
   
 int  static int
 verify_host_key_callback(Key *hostkey)  verify_host_key_callback(Key *hostkey)
 {  {
         if (verify_host_key(xxx_host, xxx_hostaddr, hostkey) == -1)          if (verify_host_key(xxx_host, xxx_hostaddr, hostkey) == -1)
Line 188 
Line 188 
   
 void    userauth(Authctxt *authctxt, char *authlist);  void    userauth(Authctxt *authctxt, char *authlist);
   
 int  static int sign_and_send_pubkey(Authctxt *, Key *, sign_cb_fn *);
 sign_and_send_pubkey(Authctxt *authctxt, Key *k,  static void clear_auth_state(Authctxt *);
     sign_cb_fn *sign_callback);  
 void    clear_auth_state(Authctxt *authctxt);  
   
 Authmethod *authmethod_get(char *authlist);  static Authmethod *authmethod_get(char *authlist);
 Authmethod *authmethod_lookup(const char *name);  static Authmethod *authmethod_lookup(const char *name);
 char *authmethods_get(void);  static char *authmethods_get(void);
   
 Authmethod authmethods[] = {  Authmethod authmethods[] = {
         {"publickey",          {"publickey",
Line 477 
Line 475 
         authctxt->last_key_sign = NULL;          authctxt->last_key_sign = NULL;
 }  }
   
 int  static int
 sign_and_send_pubkey(Authctxt *authctxt, Key *k, sign_cb_fn *sign_callback)  sign_and_send_pubkey(Authctxt *authctxt, Key *k, sign_cb_fn *sign_callback)
 {  {
         Buffer b;          Buffer b;
Line 562 
Line 560 
         return 1;          return 1;
 }  }
   
 int  static int
 send_pubkey_test(Authctxt *authctxt, Key *k, sign_cb_fn *sign_callback,  send_pubkey_test(Authctxt *authctxt, Key *k, sign_cb_fn *sign_callback,
     int hint)      int hint)
 {  {
Line 595 
Line 593 
         return 1;          return 1;
 }  }
   
 Key *  static Key *
 load_identity_file(char *filename)  load_identity_file(char *filename)
 {  {
         Key *private;          Key *private;
Line 633 
Line 631 
         return private;          return private;
 }  }
   
 int  static int
 identity_sign_cb(Authctxt *authctxt, Key *key, u_char **sigp, int *lenp,  identity_sign_cb(Authctxt *authctxt, Key *key, u_char **sigp, int *lenp,
     u_char *data, int datalen)      u_char *data, int datalen)
 {  {
Line 651 
Line 649 
         return ret;          return ret;
 }  }
   
 int agent_sign_cb(Authctxt *authctxt, Key *key, u_char **sigp, int *lenp,  static int
   agent_sign_cb(Authctxt *authctxt, Key *key, u_char **sigp, int *lenp,
     u_char *data, int datalen)      u_char *data, int datalen)
 {  {
         return ssh_agent_sign(authctxt->agent, key, sigp, lenp, data, datalen);          return ssh_agent_sign(authctxt->agent, key, sigp, lenp, data, datalen);
 }  }
   
 int key_sign_cb(Authctxt *authctxt, Key *key, u_char **sigp, int *lenp,  static int
   key_sign_cb(Authctxt *authctxt, Key *key, u_char **sigp, int *lenp,
     u_char *data, int datalen)      u_char *data, int datalen)
 {  {
         return key_sign(key, sigp, lenp, data, datalen);          return key_sign(key, sigp, lenp, data, datalen);
 }  }
   
 int  static int
 userauth_pubkey_agent(Authctxt *authctxt)  userauth_pubkey_agent(Authctxt *authctxt)
 {  {
         static int called = 0;          static int called = 0;
Line 900 
Line 900 
  * given auth method name, if configurable options permit this method fill   * given auth method name, if configurable options permit this method fill
  * in auth_ident field and return true, otherwise return false.   * in auth_ident field and return true, otherwise return false.
  */   */
 int  static int
 authmethod_is_enabled(Authmethod *method)  authmethod_is_enabled(Authmethod *method)
 {  {
         if (method == NULL)          if (method == NULL)
Line 914 
Line 914 
         return 1;          return 1;
 }  }
   
 Authmethod *  static Authmethod *
 authmethod_lookup(const char *name)  authmethod_lookup(const char *name)
 {  {
         Authmethod *method = NULL;          Authmethod *method = NULL;
Line 935 
Line 935 
  * next method we should try.  If the server initially sends a nil list,   * next method we should try.  If the server initially sends a nil list,
  * use a built-in default list.   * use a built-in default list.
  */   */
 Authmethod *  static Authmethod *
 authmethod_get(char *authlist)  authmethod_get(char *authlist)
 {  {
   

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76