2019-02-11 09:25:15 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2012-05-25 16:09:55 -06:00
|
|
|
/*
|
|
|
|
* linux/net/sunrpc/gss_rpc_upcall.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Simo Sorce <simo@redhat.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _GSS_RPC_UPCALL_H
|
|
|
|
#define _GSS_RPC_UPCALL_H
|
|
|
|
|
2013-04-29 12:03:30 -06:00
|
|
|
#include <linux/sunrpc/gss_api.h>
|
2012-05-25 16:09:55 -06:00
|
|
|
#include <linux/sunrpc/auth_gss.h>
|
|
|
|
#include "gss_rpc_xdr.h"
|
|
|
|
#include "../netns.h"
|
|
|
|
|
|
|
|
struct gssp_upcall_data {
|
|
|
|
struct xdr_netobj in_handle;
|
|
|
|
struct gssp_in_token in_token;
|
|
|
|
struct xdr_netobj out_handle;
|
|
|
|
struct xdr_netobj out_token;
|
2013-04-29 12:03:30 -06:00
|
|
|
struct rpcsec_gss_oid mech_oid;
|
2012-05-25 16:09:55 -06:00
|
|
|
struct svc_cred creds;
|
|
|
|
int found_creds;
|
|
|
|
int major_status;
|
|
|
|
int minor_status;
|
|
|
|
};
|
|
|
|
|
|
|
|
int gssp_accept_sec_context_upcall(struct net *net,
|
|
|
|
struct gssp_upcall_data *data);
|
|
|
|
void gssp_free_upcall_data(struct gssp_upcall_data *data);
|
|
|
|
|
|
|
|
void init_gssp_clnt(struct sunrpc_net *);
|
|
|
|
int set_gssp_clnt(struct net *);
|
|
|
|
void clear_gssp_clnt(struct sunrpc_net *);
|
2019-02-11 09:25:15 -07:00
|
|
|
|
2012-05-25 16:09:55 -06:00
|
|
|
#endif /* _GSS_RPC_UPCALL_H */
|