Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / net / sunrpc / auth_gss / gss_rpc_upcall.h
blob1e542aded90a10cb20d78a23b4327a92a0806ae9
1 /*
2 * linux/net/sunrpc/gss_rpc_upcall.h
4 * Copyright (C) 2012 Simo Sorce <simo@redhat.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef _GSS_RPC_UPCALL_H
22 #define _GSS_RPC_UPCALL_H
24 #include <linux/sunrpc/gss_api.h>
25 #include <linux/sunrpc/auth_gss.h>
26 #include "gss_rpc_xdr.h"
27 #include "../netns.h"
29 struct gssp_upcall_data {
30 struct xdr_netobj in_handle;
31 struct gssp_in_token in_token;
32 struct xdr_netobj out_handle;
33 struct xdr_netobj out_token;
34 struct rpcsec_gss_oid mech_oid;
35 struct svc_cred creds;
36 int found_creds;
37 int major_status;
38 int minor_status;
41 int gssp_accept_sec_context_upcall(struct net *net,
42 struct gssp_upcall_data *data);
43 void gssp_free_upcall_data(struct gssp_upcall_data *data);
45 void init_gssp_clnt(struct sunrpc_net *);
46 int set_gssp_clnt(struct net *);
47 void clear_gssp_clnt(struct sunrpc_net *);
48 #endif /* _GSS_RPC_UPCALL_H */