diff options
author | David Howells <dhowells@redhat.com> | 2020-09-16 10:19:12 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2020-11-23 21:09:29 +0300 |
commit | 41057ebde0025b0179b852dd785c9f3f0f08adad (patch) | |
tree | 38c65bf6981af9039860c4e1d4cbf930a041550e /net/rxrpc/ar-internal.h | |
parent | 0727d3ec38074d0cef3fbef1d64f2d0a92ace046 (diff) | |
download | linux-41057ebde0025b0179b852dd785c9f3f0f08adad.tar.xz |
rxrpc: Support keys with multiple authentication tokens
rxrpc-type keys can have multiple tokens attached for different security
classes. Currently, rxrpc always picks the first one, whether or not the
security class it indicates is supported.
Add preliminary support for choosing which security class will be used
(this will need to be directed from a higher layer) and go through the
tokens to find one that's supported.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/ar-internal.h')
-rw-r--r-- | net/rxrpc/ar-internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h index dce48162f6c2..3c417ec94e4c 100644 --- a/net/rxrpc/ar-internal.h +++ b/net/rxrpc/ar-internal.h @@ -12,6 +12,7 @@ #include <net/netns/generic.h> #include <net/sock.h> #include <net/af_rxrpc.h> +#include <keys/rxrpc-type.h> #include "protocol.h" #if 0 @@ -217,7 +218,8 @@ struct rxrpc_security { void (*exit)(void); /* initialise a connection's security */ - int (*init_connection_security)(struct rxrpc_connection *); + int (*init_connection_security)(struct rxrpc_connection *, + struct rxrpc_key_token *); /* prime a connection's packet security */ int (*prime_packet_security)(struct rxrpc_connection *); |