linux/net/sunrpc/auth_tls.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2021, 2022 Oracle.  All rights reserved.
 *
 * The AUTH_TLS credential is used only to probe a remote peer
 * for RPC-over-TLS support.
 */

#include <linux/types.h>
#include <linux/module.h>
#include <linux/sunrpc/clnt.h>

static const char *starttls_token =;
static const size_t starttls_len =;

static struct rpc_auth tls_auth;
static struct rpc_cred tls_cred;

static void tls_encode_probe(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
			     const void *obj)
{}

static int tls_decode_probe(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
			    void *obj)
{}

static const struct rpc_procinfo rpcproc_tls_probe =;

static void rpc_tls_probe_call_prepare(struct rpc_task *task, void *data)
{}

static void rpc_tls_probe_call_done(struct rpc_task *task, void *data)
{}

static const struct rpc_call_ops rpc_tls_probe_ops =;

static int tls_probe(struct rpc_clnt *clnt)
{}

static struct rpc_auth *tls_create(const struct rpc_auth_create_args *args,
				   struct rpc_clnt *clnt)
{}

static void tls_destroy(struct rpc_auth *auth)
{}

static struct rpc_cred *tls_lookup_cred(struct rpc_auth *auth,
					struct auth_cred *acred, int flags)
{}

static void tls_destroy_cred(struct rpc_cred *cred)
{}

static int tls_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags)
{}

static int tls_marshal(struct rpc_task *task, struct xdr_stream *xdr)
{}

static int tls_refresh(struct rpc_task *task)
{}

static int tls_validate(struct rpc_task *task, struct xdr_stream *xdr)
{}

const struct rpc_authops authtls_ops =;

static struct rpc_auth tls_auth =;

static const struct rpc_credops tls_credops =;

static struct rpc_cred tls_cred =;