SUNRPC: Add RPC_AUTH_TLS protocol numbers
authorChuck Lever <chuck.lever@oracle.com>
Fri, 30 Jul 2021 20:07:36 +0000 (16:07 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 17 Aug 2021 15:47:53 +0000 (11:47 -0400)
Shared by client and server. See:

https://www.iana.org/assignments/rpc-authentication-numbers/rpc-authentication-numbers.xhtml

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/msg_prot.h
include/linux/sunrpc/xdr.h

index 938c2bf29db88a5a2ec99cb5e1184158c65d9489..02117ed0fa2ee51d93801a7013796702cc634d0d 100644 (file)
@@ -20,6 +20,7 @@ enum rpc_auth_flavors {
        RPC_AUTH_DES   = 3,
        RPC_AUTH_KRB   = 4,
        RPC_AUTH_GSS   = 6,
+       RPC_AUTH_TLS   = 7,
        RPC_AUTH_MAXFLAVOR = 8,
        /* pseudoflavors: */
        RPC_AUTH_GSS_KRB5  = 390003,
index a965cbc136adddc6de0a8aa97c496c9a390de146..b519609af1d020fa3676a59d652a6b9dcfe7d58f 100644 (file)
@@ -95,6 +95,7 @@ xdr_buf_init(struct xdr_buf *buf, void *start, size_t len)
 #define        rpc_auth_unix   cpu_to_be32(RPC_AUTH_UNIX)
 #define        rpc_auth_short  cpu_to_be32(RPC_AUTH_SHORT)
 #define        rpc_auth_gss    cpu_to_be32(RPC_AUTH_GSS)
+#define        rpc_auth_tls    cpu_to_be32(RPC_AUTH_TLS)
 
 #define        rpc_call        cpu_to_be32(RPC_CALL)
 #define        rpc_reply       cpu_to_be32(RPC_REPLY)