Skip to content

Commit

Permalink
tcp: md5: remove tcp_md5_hash_header()
Browse files Browse the repository at this point in the history
After commit 19689e3 ("tcp: md5: use kmalloc() backed scratch
areas") this function is no longer used.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Aug 20, 2016
1 parent dfad09a commit b6c6b64
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3092,23 +3092,6 @@ struct tcp_md5sig_pool *tcp_get_md5sig_pool(void)
}
EXPORT_SYMBOL(tcp_get_md5sig_pool);

int tcp_md5_hash_header(struct tcp_md5sig_pool *hp,
const struct tcphdr *th)
{
struct scatterlist sg;
struct tcphdr hdr;

/* We are not allowed to change tcphdr, make a local copy */
memcpy(&hdr, th, sizeof(hdr));
hdr.check = 0;

/* options aren't included in the hash */
sg_init_one(&sg, &hdr, sizeof(hdr));
ahash_request_set_crypt(hp->md5_req, &sg, NULL, sizeof(hdr));
return crypto_ahash_update(hp->md5_req);
}
EXPORT_SYMBOL(tcp_md5_hash_header);

int tcp_md5_hash_skb_data(struct tcp_md5sig_pool *hp,
const struct sk_buff *skb, unsigned int header_len)
{
Expand Down

0 comments on commit b6c6b64

Please sign in to comment.