OSDN Git Service

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)
commit41057ebde0025b0179b852dd785c9f3f0f08adad
tree38c65bf6981af9039860c4e1d4cbf930a041550e
parent0727d3ec38074d0cef3fbef1d64f2d0a92ace046
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