summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/cookie.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-04-08 23:15:27 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-04-08 23:15:27 +0000
commit9967edda194eb32d6402b621364e4f48c784e1a8 (patch)
tree702f75ac2519f01081ed76a0ee2cfc3052625bb8 /sbin/isakmpd/cookie.c
parentcb04993a6a5ad3e448426e96a948cdef66528031 (diff)
get rid of sysdep_sa_len
ok cloder@
Diffstat (limited to 'sbin/isakmpd/cookie.c')
-rw-r--r--sbin/isakmpd/cookie.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/isakmpd/cookie.c b/sbin/isakmpd/cookie.c
index ec8f8265331..bebf475b74f 100644
--- a/sbin/isakmpd/cookie.c
+++ b/sbin/isakmpd/cookie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cookie.c,v 1.14 2004/05/14 08:42:56 hshoexer Exp $ */
+/* $OpenBSD: cookie.c,v 1.15 2005/04/08 23:15:25 hshoexer Exp $ */
/* $EOM: cookie.c,v 1.21 1999/08/05 15:00:04 niklas Exp $ */
/*
@@ -34,8 +34,6 @@
#include <stdlib.h>
#include <string.h>
-#include "sysdep.h"
-
#include "cookie.h"
#include "exchange.h"
#include "hash.h"
@@ -61,9 +59,9 @@ cookie_gen(struct transport *t, struct exchange *exchange, u_int8_t *buf,
hash->Init(hash->ctx);
(*t->vtbl->get_dst)(t, &name);
- hash->Update(hash->ctx, (u_int8_t *)name, sysdep_sa_len(name));
+ hash->Update(hash->ctx, (u_int8_t *)name, SA_LEN(name));
(*t->vtbl->get_src)(t, &name);
- hash->Update(hash->ctx, (u_int8_t *)name, sysdep_sa_len(name));
+ hash->Update(hash->ctx, (u_int8_t *)name, SA_LEN(name));
if (exchange->initiator == 0)
hash->Update(hash->ctx, exchange->cookies +
ISAKMP_HDR_ICOOKIE_OFF, ISAKMP_HDR_ICOOKIE_LEN);