diff options
author | Eric Dumazet <edumazet@google.com> | 2016-08-18 09:49:55 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-19 17:06:58 -0700 |
commit | b6c6b645d29158acb41d6fb2031b289d4f0fc936 (patch) | |
tree | 7e5d754e016d8f71c4984b8e447f02951f6135d6 /net/ipv4/tcp.c | |
parent | dfad09a6da60d6426b1193029089ef008891f007 (diff) | |
download | linux-b6c6b645d29158acb41d6fb2031b289d4f0fc936.tar.gz linux-b6c6b645d29158acb41d6fb2031b289d4f0fc936.tar.bz2 linux-b6c6b645d29158acb41d6fb2031b289d4f0fc936.zip |
tcp: md5: remove tcp_md5_hash_header()
After commit 19689e38eca5 ("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>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 032a96d78c99..f1a9a0a8a1f3 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -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) { |