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

Diff for /src/usr.bin/ssh/hostfile.c between version 1.35.2.2 and 1.36

version 1.35.2.2, 2006/10/06 03:19:32 version 1.36, 2005/11/22 03:36:03
Line 1 
Line 1 
 /* $OpenBSD$ */  
 /*  /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>   * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland   * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
Line 36 
Line 35 
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */   */
   
 #include <sys/types.h>  #include "includes.h"
   RCSID("$OpenBSD$");
   
 #include <netinet/in.h>  #include <resolv.h>
   
 #include <openssl/hmac.h>  #include <openssl/hmac.h>
 #include <openssl/sha.h>  #include <openssl/sha.h>
   
 #include <resolv.h>  #include "packet.h"
 #include <stdio.h>  
 #include <stdlib.h>  
 #include <string.h>  
   
 #include "xmalloc.h"  
 #include "match.h"  #include "match.h"
 #include "key.h"  #include "key.h"
 #include "hostfile.h"  #include "hostfile.h"
 #include "log.h"  #include "log.h"
   #include "xmalloc.h"
   
 static int  static int
 extract_salt(const char *s, u_int l, char *salt, size_t salt_len)  extract_salt(const char *s, u_int l, char *salt, size_t salt_len)
Line 259 
Line 254 
   
                 if (key == NULL) {                  if (key == NULL) {
                         /* we found a key of the requested type */                          /* we found a key of the requested type */
                         if (found->type == keytype) {                          if (found->type == keytype)
                                 fclose(f);  
                                 return HOST_FOUND;                                  return HOST_FOUND;
                         }  
                         continue;                          continue;
                 }                  }
   

Legend:
Removed from v.1.35.2.2  
changed lines
  Added in v.1.36