aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc/ar-internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2020-09-17 23:23:38 +0100
committerDavid Howells <dhowells@redhat.com>2020-11-23 18:09:30 +0000
commitf4bdf3d683183d2d9f06c9f165fa48bb854988a4 (patch)
treee72130840b5544e094211828441f3ef559a71105 /net/rxrpc/ar-internal.h
parentrxrpc: Merge prime_packet_security into init_connection_security (diff)
downloadlinux-dev-f4bdf3d683183d2d9f06c9f165fa48bb854988a4.tar.xz
linux-dev-f4bdf3d683183d2d9f06c9f165fa48bb854988a4.zip
rxrpc: Don't reserve security header in Tx DATA skbuff
Insert the security header into the skbuff representing a DATA packet to be transmitted rather than using skb_reserve() when the packet is allocated. This makes it easier to apply crypto that spans the security header and the data, particularly in the upcoming RxGK class where we have a common encrypt-and-checksum function that is used in a number of circumstances. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to '')
-rw-r--r--net/rxrpc/ar-internal.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h
index 6aaa0f49dab0..742a69fb8e60 100644
--- a/net/rxrpc/ar-internal.h
+++ b/net/rxrpc/ar-internal.h
@@ -236,10 +236,7 @@ struct rxrpc_security {
/* impose security on a packet */
- int (*secure_packet)(struct rxrpc_call *,
- struct sk_buff *,
- size_t,
- void *);
+ int (*secure_packet)(struct rxrpc_call *, struct sk_buff *, size_t);
/* verify the security on a received packet */
int (*verify_packet)(struct rxrpc_call *, struct sk_buff *,