SUNRPC: Fail quickly when server does not recognize TLS
authorChuck Lever <chuck.lever@oracle.com>
Wed, 6 Sep 2023 20:05:26 +0000 (16:05 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 27 Sep 2023 19:16:40 +0000 (15:16 -0400)
commit5623ecfcbec165f040a23248d39680f0cc5c0854
treed9f06f6152942a54996062b877f7c27079c09d89
parent6465e260f48790807eef06b583b38ca9789b6072
SUNRPC: Fail quickly when server does not recognize TLS

rpcauth_checkverf() should return a distinct error code when a
server recognizes the AUTH_TLS probe but does not support TLS so
that the client's header decoder can respond appropriately and
quickly. No retries are necessary is in this case, since the server
has already affirmatively answered "TLS is unsupported".

Suggested-by: Trond Myklebust <trondmy@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/auth.c
net/sunrpc/auth_tls.c
net/sunrpc/clnt.c