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 | ||
b1df7637 | 24 | #include <linux/sunrpc/gss_api.h> |
1d658336 SS |
25 | #include <linux/sunrpc/auth_gss.h> |
26 | #include "gss_rpc_xdr.h" | |
27 | #include "../netns.h" | |
28 | ||
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; | |
b1df7637 | 34 | struct rpcsec_gss_oid mech_oid; |
1d658336 SS |
35 | struct svc_cred creds; |
36 | int found_creds; | |
37 | int major_status; | |
38 | int minor_status; | |
39 | }; | |
40 | ||
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); | |
44 | ||
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 */ |