]>
Commit | Line | Data |
---|---|---|
1d658336 SS |
1 | /* |
2 | * linux/net/sunrpc/gss_rpc_upcall.h | |
3 | * | |
4 | * Copyright (C) 2012 Simo Sorce <simo@redhat.com> | |
5 | * | |
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. | |
10 | * | |
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. | |
15 | * | |
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. | |
19 | */ | |
20 | ||
21 | #ifndef _GSS_RPC_UPCALL_H | |
22 | #define _GSS_RPC_UPCALL_H | |
23 | ||
24 | #include <linux/sunrpc/auth_gss.h> | |
25 | #include "gss_rpc_xdr.h" | |
26 | #include "../netns.h" | |
27 | ||
28 | struct gssp_upcall_data { | |
29 | struct xdr_netobj in_handle; | |
30 | struct gssp_in_token in_token; | |
31 | struct xdr_netobj out_handle; | |
32 | struct xdr_netobj out_token; | |
33 | struct xdr_netobj mech_oid; | |
34 | struct svc_cred creds; | |
35 | int found_creds; | |
36 | int major_status; | |
37 | int minor_status; | |
38 | }; | |
39 | ||
40 | int gssp_accept_sec_context_upcall(struct net *net, | |
41 | struct gssp_upcall_data *data); | |
42 | void gssp_free_upcall_data(struct gssp_upcall_data *data); | |
43 | ||
44 | void init_gssp_clnt(struct sunrpc_net *); | |
45 | int set_gssp_clnt(struct net *); | |
46 | void clear_gssp_clnt(struct sunrpc_net *); | |
47 | #endif /* _GSS_RPC_UPCALL_H */ |