diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-04-08 23:15:27 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-04-08 23:15:27 +0000 |
commit | 9967edda194eb32d6402b621364e4f48c784e1a8 (patch) | |
tree | 702f75ac2519f01081ed76a0ee2cfc3052625bb8 /sbin/isakmpd/sa.c | |
parent | cb04993a6a5ad3e448426e96a948cdef66528031 (diff) |
get rid of sysdep_sa_len
ok cloder@
Diffstat (limited to 'sbin/isakmpd/sa.c')
-rw-r--r-- | sbin/isakmpd/sa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/isakmpd/sa.c b/sbin/isakmpd/sa.c index ae6323b0206..88c09370ae6 100644 --- a/sbin/isakmpd/sa.c +++ b/sbin/isakmpd/sa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sa.c,v 1.97 2005/04/08 22:32:10 cloder Exp $ */ +/* $OpenBSD: sa.c,v 1.98 2005/04/08 23:15:26 hshoexer Exp $ */ /* $EOM: sa.c,v 1.112 2000/12/12 00:22:52 niklas Exp $ */ /* @@ -198,8 +198,8 @@ sa_check_peer(struct sa *sa, void *v_addr) return 0; sa->transport->vtbl->get_dst(sa->transport, &dst); - return sysdep_sa_len(dst) == addr->len && - memcmp(dst, addr->addr, sysdep_sa_len(dst)) == 0; + return SA_LEN(dst) == addr->len && + memcmp(dst, addr->addr, SA_LEN(dst)) == 0; } struct dst_isakmpspi_arg { @@ -223,8 +223,8 @@ isakmp_sa_check(struct sa *sa, void *v_arg) /* verify address is either src or dst for this sa */ sa->transport->vtbl->get_dst(sa->transport, &dst); sa->transport->vtbl->get_src(sa->transport, &src); - if (memcmp(src, arg->dst, sysdep_sa_len(src)) && - memcmp(dst, arg->dst, sysdep_sa_len(dst))) + if (memcmp(src, arg->dst, SA_LEN(src)) && + memcmp(dst, arg->dst, SA_LEN(dst))) return 0; /* match icookie+rcookie against spi */ |