.. | .. |
---|
13 | 13 | #ifndef _LINUX_SUNRPC_GSS_API_H |
---|
14 | 14 | #define _LINUX_SUNRPC_GSS_API_H |
---|
15 | 15 | |
---|
16 | | -#ifdef __KERNEL__ |
---|
17 | 16 | #include <linux/sunrpc/xdr.h> |
---|
18 | 17 | #include <linux/sunrpc/msg_prot.h> |
---|
19 | 18 | #include <linux/uio.h> |
---|
.. | .. |
---|
22 | 21 | struct gss_ctx { |
---|
23 | 22 | struct gss_api_mech *mech_type; |
---|
24 | 23 | void *internal_ctx_id; |
---|
| 24 | + unsigned int slack, align; |
---|
25 | 25 | }; |
---|
26 | 26 | |
---|
27 | 27 | #define GSS_C_NO_BUFFER ((struct xdr_netobj) 0) |
---|
.. | .. |
---|
49 | 49 | size_t bufsize, |
---|
50 | 50 | struct gss_api_mech *mech, |
---|
51 | 51 | struct gss_ctx **ctx_id, |
---|
52 | | - time_t *endtime, |
---|
| 52 | + time64_t *endtime, |
---|
53 | 53 | gfp_t gfp_mask); |
---|
54 | 54 | u32 gss_get_mic( |
---|
55 | 55 | struct gss_ctx *ctx_id, |
---|
.. | .. |
---|
67 | 67 | u32 gss_unwrap( |
---|
68 | 68 | struct gss_ctx *ctx_id, |
---|
69 | 69 | int offset, |
---|
| 70 | + int len, |
---|
70 | 71 | struct xdr_buf *inbuf); |
---|
71 | 72 | u32 gss_delete_sec_context( |
---|
72 | 73 | struct gss_ctx **ctx_id); |
---|
.. | .. |
---|
110 | 111 | const void *input_token, |
---|
111 | 112 | size_t bufsize, |
---|
112 | 113 | struct gss_ctx *ctx_id, |
---|
113 | | - time_t *endtime, |
---|
| 114 | + time64_t *endtime, |
---|
114 | 115 | gfp_t gfp_mask); |
---|
115 | 116 | u32 (*gss_get_mic)( |
---|
116 | 117 | struct gss_ctx *ctx_id, |
---|
.. | .. |
---|
128 | 129 | u32 (*gss_unwrap)( |
---|
129 | 130 | struct gss_ctx *ctx_id, |
---|
130 | 131 | int offset, |
---|
| 132 | + int len, |
---|
131 | 133 | struct xdr_buf *buf); |
---|
132 | 134 | void (*gss_delete_sec_context)( |
---|
133 | 135 | void *internal_ctx_id); |
---|
.. | .. |
---|
152 | 154 | /* Similar, but get by pseudoflavor. */ |
---|
153 | 155 | struct gss_api_mech *gss_mech_get_by_pseudoflavor(u32); |
---|
154 | 156 | |
---|
155 | | -/* Fill in an array with a list of supported pseudoflavors */ |
---|
156 | | -int gss_mech_list_pseudoflavors(rpc_authflavor_t *, int); |
---|
157 | | - |
---|
158 | 157 | struct gss_api_mech * gss_mech_get(struct gss_api_mech *); |
---|
159 | 158 | |
---|
160 | 159 | /* For every successful gss_mech_get or gss_mech_get_by_* call there must be a |
---|
161 | 160 | * corresponding call to gss_mech_put. */ |
---|
162 | 161 | void gss_mech_put(struct gss_api_mech *); |
---|
163 | 162 | |
---|
164 | | -#endif /* __KERNEL__ */ |
---|
165 | 163 | #endif /* _LINUX_SUNRPC_GSS_API_H */ |
---|
166 | 164 | |
---|