]> 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)
commit9efd78495ad3573609995fe23e9d4bcf6cfcaa4f
tree38c65bf6981af9039860c4e1d4cbf930a041550e
parent821c4d0dbcb141beb6421c79500a29e5612f14e9
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