]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Support keys with multiple authentication tokens
authorDavid Howells <dhowells@redhat.com>
Wed, 16 Sep 2020 07:19:12 +0000 (08:19 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 23 Nov 2020 18:09:29 +0000 (18:09 +0000)
commit4113a56c5929400b33bcca50637860247d412f26
tree38c65bf6981af9039860c4e1d4cbf930a041550e
parent34a287408c808d2c54eb6f11dd110b738e0839f2
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>
net/rxrpc/ar-internal.h
net/rxrpc/conn_event.c
net/rxrpc/insecure.c
net/rxrpc/rxkad.c
net/rxrpc/security.c