summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/hash.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-29 20:38:17 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-29 20:38:17 +0000
commita5bb99d71a2a1d57ec865f82145578beb96e713b (patch)
treea460228c9275ef4150ee298154cd3a1764471d89 /sbin/isakmpd/hash.c
parent683c416022545c05fdf12dd6edcd8fb7ba67b61e (diff)
LOG_DBG in hash_get, and if sysdep_cleartext() fails bail out of
initializing socket.
Diffstat (limited to 'sbin/isakmpd/hash.c')
-rw-r--r--sbin/isakmpd/hash.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/isakmpd/hash.c b/sbin/isakmpd/hash.c
index eca6e409ce3..736ee8c8bc4 100644
--- a/sbin/isakmpd/hash.c
+++ b/sbin/isakmpd/hash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hash.c,v 1.6 2001/04/15 16:09:16 ho Exp $ */
+/* $OpenBSD: hash.c,v 1.7 2001/06/29 20:38:15 angelos Exp $ */
/* $EOM: hash.c,v 1.10 1999/04/17 23:20:34 niklas Exp $ */
/*
@@ -43,6 +43,7 @@
#include "sysdep.h"
#include "hash.h"
+#include "log.h"
void hmac_init (struct hash *, unsigned char *, int);
void hmac_final (unsigned char *, struct hash *);
@@ -78,6 +79,8 @@ hash_get (enum hashes hashtype)
{
int i;
+ LOG_DBG ((LOG_CRYPTO, 60, "hash_get: requested algorithm %d", hashtype));
+
for (i = 0; i < sizeof hashes / sizeof hashes[0]; i++)
if (hashtype == hashes[i].type)
return &hashes[i];