summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.ninka.net>2003-03-24 11:11:31 -0800
committerDavid S. Miller <davem@nuts.ninka.net>2003-03-24 11:11:31 -0800
commitacacb960c5ce8f3840d030c5802879f87cdda57e (patch)
tree802ce9729aa5ed1078bfaeb7909cd1df3e6351e2 /include
parent9a98fe288e7f2ec5b8683e69c71a5041eeb4e5e6 (diff)
[IPSEC]: Kill skb_ah_walk, not needed.
Diffstat (limited to 'include')
-rw-r--r--include/net/ah.h5
-rw-r--r--include/net/esp.h2
-rw-r--r--include/net/xfrm.h3
3 files changed, 4 insertions, 6 deletions
diff --git a/include/net/ah.h b/include/net/ah.h
index 56776f73caf4..40425968a6ec 100644
--- a/include/net/ah.h
+++ b/include/net/ah.h
@@ -17,9 +17,6 @@ struct ah_data
struct crypto_tfm *tfm;
};
-extern void skb_ah_walk(const struct sk_buff *skb,
- struct crypto_tfm *tfm, icv_update_fn_t icv_update);
-
static inline void
ah_hmac_digest(struct ah_data *ahp, struct sk_buff *skb, u8 *auth_data)
{
@@ -27,7 +24,7 @@ ah_hmac_digest(struct ah_data *ahp, struct sk_buff *skb, u8 *auth_data)
memset(auth_data, 0, ahp->icv_trunc_len);
crypto_hmac_init(tfm, ahp->key, &ahp->key_len);
- skb_ah_walk(skb, tfm, crypto_hmac_update);
+ skb_icv_walk(skb, tfm, 0, skb->len, crypto_hmac_update);
crypto_hmac_final(tfm, ahp->key, &ahp->key_len, ahp->work_icv);
memcpy(auth_data, ahp->work_icv, ahp->icv_trunc_len);
}
diff --git a/include/net/esp.h b/include/net/esp.h
index 4c7f8a72fe93..a513d14522ee 100644
--- a/include/net/esp.h
+++ b/include/net/esp.h
@@ -33,8 +33,6 @@ struct esp_data
} auth;
};
-extern void skb_icv_walk(const struct sk_buff *skb, struct crypto_tfm *tfm,
- int offset, int len, icv_update_fn_t icv_update);
extern int skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len);
extern int skb_cow_data(struct sk_buff *skb, int tailbits, struct sk_buff **trailer);
extern void *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len);
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index ad5f179de784..85ff3a302e78 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -781,4 +781,7 @@ extern struct xfrm_algo_desc *xfrm_calg_get_byname(char *name);
struct crypto_tfm;
typedef void (icv_update_fn_t)(struct crypto_tfm *, struct scatterlist *, unsigned int);
+extern void skb_icv_walk(const struct sk_buff *skb, struct crypto_tfm *tfm,
+ int offset, int len, icv_update_fn_t icv_update);
+
#endif /* _NET_XFRM_H */