diff options
author | David Howells <dhowells@redhat.com> | 2020-09-16 09:19:12 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2020-11-23 19:09:29 +0100 |
commit | 41057ebde0025b0179b852dd785c9f3f0f08adad (patch) | |
tree | 38c65bf6981af9039860c4e1d4cbf930a041550e /net/rxrpc/insecure.c | |
parent | rxrpc: List the held token types in the key description in /proc/keys (diff) | |
download | linux-41057ebde0025b0179b852dd785c9f3f0f08adad.tar.xz linux-41057ebde0025b0179b852dd785c9f3f0f08adad.zip |
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/insecure.c')
-rw-r--r-- | net/rxrpc/insecure.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rxrpc/insecure.c b/net/rxrpc/insecure.c index f6c59f5fae9d..cf3ecffcf424 100644 --- a/net/rxrpc/insecure.c +++ b/net/rxrpc/insecure.c @@ -8,7 +8,8 @@ #include <net/af_rxrpc.h> #include "ar-internal.h" -static int none_init_connection_security(struct rxrpc_connection *conn) +static int none_init_connection_security(struct rxrpc_connection *conn, + struct rxrpc_key_token *token) { return 0; } |