version 1.35.2.2, 2006/10/06 03:19:32 |
version 1.36, 2005/11/22 03:36:03 |
|
|
/* $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 |
|
|
* 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) |
|
|
|
|
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; |
} |
} |
|
|