xref: /freebsd/crypto/heimdal/lib/gssapi/ntlm/ntlm-private.h (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1 /* This is a generated file */
2 #ifndef __ntlm_private_h__
3 #define __ntlm_private_h__
4 
5 #include <stdarg.h>
6 
7 gssapi_mech_interface
8 __gss_ntlm_initialize (void);
9 
10 OM_uint32 GSSAPI_CALLCONV
11 _gss_ntlm_accept_sec_context (
12 	OM_uint32 * /*minor_status*/,
13 	gss_ctx_id_t * /*context_handle*/,
14 	const gss_cred_id_t /*acceptor_cred_handle*/,
15 	const gss_buffer_t /*input_token_buffer*/,
16 	const gss_channel_bindings_t /*input_chan_bindings*/,
17 	gss_name_t * /*src_name*/,
18 	gss_OID * /*mech_type*/,
19 	gss_buffer_t /*output_token*/,
20 	OM_uint32 * /*ret_flags*/,
21 	OM_uint32 * /*time_rec*/,
22 	gss_cred_id_t * delegated_cred_handle );
23 
24 OM_uint32 GSSAPI_CALLCONV
25 _gss_ntlm_acquire_cred (
26 	OM_uint32 * /*min_stat*/,
27 	const gss_name_t /*desired_name*/,
28 	OM_uint32 /*time_req*/,
29 	const gss_OID_set /*desired_mechs*/,
30 	gss_cred_usage_t /*cred_usage*/,
31 	gss_cred_id_t * /*output_cred_handle*/,
32 	gss_OID_set * /*actual_mechs*/,
33 	OM_uint32 * time_rec );
34 
35 OM_uint32 GSSAPI_CALLCONV
36 _gss_ntlm_add_cred (
37 	 OM_uint32 */*minor_status*/,
38 	const gss_cred_id_t /*input_cred_handle*/,
39 	const gss_name_t /*desired_name*/,
40 	const gss_OID /*desired_mech*/,
41 	gss_cred_usage_t /*cred_usage*/,
42 	OM_uint32 /*initiator_time_req*/,
43 	OM_uint32 /*acceptor_time_req*/,
44 	gss_cred_id_t */*output_cred_handle*/,
45 	gss_OID_set */*actual_mechs*/,
46 	OM_uint32 */*initiator_time_rec*/,
47 	OM_uint32 */*acceptor_time_rec*/);
48 
49 OM_uint32
50 _gss_ntlm_allocate_ctx (
51 	OM_uint32 */*minor_status*/,
52 	ntlm_ctx */*ctx*/);
53 
54 OM_uint32 GSSAPI_CALLCONV
55 _gss_ntlm_canonicalize_name (
56 	 OM_uint32 * /*minor_status*/,
57 	const gss_name_t /*input_name*/,
58 	const gss_OID /*mech_type*/,
59 	gss_name_t * output_name );
60 
61 OM_uint32 GSSAPI_CALLCONV
62 _gss_ntlm_compare_name (
63 	OM_uint32 * /*minor_status*/,
64 	const gss_name_t /*name1*/,
65 	const gss_name_t /*name2*/,
66 	int * name_equal );
67 
68 OM_uint32 GSSAPI_CALLCONV
69 _gss_ntlm_context_time (
70 	OM_uint32 * /*minor_status*/,
71 	const gss_ctx_id_t /*context_handle*/,
72 	OM_uint32 * time_rec );
73 
74 OM_uint32 GSSAPI_CALLCONV
75 _gss_ntlm_delete_sec_context (
76 	OM_uint32 * /*minor_status*/,
77 	gss_ctx_id_t * /*context_handle*/,
78 	gss_buffer_t output_token );
79 
80 OM_uint32 GSSAPI_CALLCONV
81 _gss_ntlm_destroy_cred (
82 	OM_uint32 */*minor_status*/,
83 	gss_cred_id_t */*cred_handle*/);
84 
85 OM_uint32 GSSAPI_CALLCONV
86 _gss_ntlm_display_name (
87 	OM_uint32 * /*minor_status*/,
88 	const gss_name_t /*input_name*/,
89 	gss_buffer_t /*output_name_buffer*/,
90 	gss_OID * output_name_type );
91 
92 OM_uint32 GSSAPI_CALLCONV
93 _gss_ntlm_display_status (
94 	OM_uint32 */*minor_status*/,
95 	OM_uint32 /*status_value*/,
96 	int /*status_type*/,
97 	const gss_OID /*mech_type*/,
98 	OM_uint32 */*message_context*/,
99 	gss_buffer_t /*status_string*/);
100 
101 OM_uint32 GSSAPI_CALLCONV
102 _gss_ntlm_duplicate_name (
103 	 OM_uint32 * /*minor_status*/,
104 	const gss_name_t /*src_name*/,
105 	gss_name_t * dest_name );
106 
107 OM_uint32 GSSAPI_CALLCONV
108 _gss_ntlm_export_name (
109 	OM_uint32 * /*minor_status*/,
110 	const gss_name_t /*input_name*/,
111 	gss_buffer_t exported_name );
112 
113 OM_uint32 GSSAPI_CALLCONV
114 _gss_ntlm_export_sec_context (
115 	 OM_uint32 * /*minor_status*/,
116 	gss_ctx_id_t * /*context_handle*/,
117 	gss_buffer_t interprocess_token );
118 
119 OM_uint32 GSSAPI_CALLCONV
120 _gss_ntlm_get_mic (
121 	OM_uint32 * /*minor_status*/,
122 	const gss_ctx_id_t /*context_handle*/,
123 	gss_qop_t /*qop_req*/,
124 	const gss_buffer_t /*message_buffer*/,
125 	gss_buffer_t message_token );
126 
127 int
128 _gss_ntlm_get_user_cred (
129 	const ntlm_name /*target_name*/,
130 	ntlm_cred */*rcred*/);
131 
132 OM_uint32 GSSAPI_CALLCONV
133 _gss_ntlm_import_name (
134 	OM_uint32 * /*minor_status*/,
135 	const gss_buffer_t /*input_name_buffer*/,
136 	const gss_OID /*input_name_type*/,
137 	gss_name_t * output_name );
138 
139 OM_uint32 GSSAPI_CALLCONV
140 _gss_ntlm_import_sec_context (
141 	 OM_uint32 * /*minor_status*/,
142 	const gss_buffer_t /*interprocess_token*/,
143 	gss_ctx_id_t * context_handle );
144 
145 OM_uint32
146 _gss_ntlm_indicate_mechs (
147 	OM_uint32 * /*minor_status*/,
148 	gss_OID_set * mech_set );
149 
150 OM_uint32 GSSAPI_CALLCONV
151 _gss_ntlm_init_sec_context (
152 	OM_uint32 * /*minor_status*/,
153 	const gss_cred_id_t /*initiator_cred_handle*/,
154 	gss_ctx_id_t * /*context_handle*/,
155 	const gss_name_t /*target_name*/,
156 	const gss_OID /*mech_type*/,
157 	OM_uint32 /*req_flags*/,
158 	OM_uint32 /*time_req*/,
159 	const gss_channel_bindings_t /*input_chan_bindings*/,
160 	const gss_buffer_t /*input_token*/,
161 	gss_OID * /*actual_mech_type*/,
162 	gss_buffer_t /*output_token*/,
163 	OM_uint32 * /*ret_flags*/,
164 	OM_uint32 * time_rec );
165 
166 OM_uint32 GSSAPI_CALLCONV
167 _gss_ntlm_inquire_context (
168 	 OM_uint32 * /*minor_status*/,
169 	const gss_ctx_id_t /*context_handle*/,
170 	gss_name_t * /*src_name*/,
171 	gss_name_t * /*targ_name*/,
172 	OM_uint32 * /*lifetime_rec*/,
173 	gss_OID * /*mech_type*/,
174 	OM_uint32 * /*ctx_flags*/,
175 	int * /*locally_initiated*/,
176 	int * open_context );
177 
178 OM_uint32 GSSAPI_CALLCONV
179 _gss_ntlm_inquire_cred (
180 	OM_uint32 * /*minor_status*/,
181 	const gss_cred_id_t /*cred_handle*/,
182 	gss_name_t * /*name*/,
183 	OM_uint32 * /*lifetime*/,
184 	gss_cred_usage_t * /*cred_usage*/,
185 	gss_OID_set * mechanisms );
186 
187 OM_uint32 GSSAPI_CALLCONV
188 _gss_ntlm_inquire_cred_by_mech (
189 	 OM_uint32 * /*minor_status*/,
190 	const gss_cred_id_t /*cred_handle*/,
191 	const gss_OID /*mech_type*/,
192 	gss_name_t * /*name*/,
193 	OM_uint32 * /*initiator_lifetime*/,
194 	OM_uint32 * /*acceptor_lifetime*/,
195 	gss_cred_usage_t * cred_usage );
196 
197 OM_uint32 GSSAPI_CALLCONV
198 _gss_ntlm_inquire_mechs_for_name (
199 	 OM_uint32 * /*minor_status*/,
200 	const gss_name_t /*input_name*/,
201 	gss_OID_set * mech_types );
202 
203 OM_uint32 GSSAPI_CALLCONV
204 _gss_ntlm_inquire_names_for_mech (
205 	 OM_uint32 * /*minor_status*/,
206 	const gss_OID /*mechanism*/,
207 	gss_OID_set * name_types );
208 
209 OM_uint32 GSSAPI_CALLCONV
210 _gss_ntlm_inquire_sec_context_by_oid (
211 	OM_uint32 */*minor_status*/,
212 	const gss_ctx_id_t /*context_handle*/,
213 	const gss_OID /*desired_object*/,
214 	gss_buffer_set_t */*data_set*/);
215 
216 void GSSAPI_CALLCONV
217 _gss_ntlm_iter_creds_f (
218 	OM_uint32 /*flags*/,
219 	void *userctx ,
220 	void (*/*cred_iter*/)(void *, gss_OID, gss_cred_id_t));
221 
222 OM_uint32 GSSAPI_CALLCONV
223 _gss_ntlm_process_context_token (
224 	 OM_uint32 */*minor_status*/,
225 	const gss_ctx_id_t /*context_handle*/,
226 	const gss_buffer_t token_buffer );
227 
228 OM_uint32 GSSAPI_CALLCONV
229 _gss_ntlm_release_cred (
230 	OM_uint32 * /*minor_status*/,
231 	gss_cred_id_t * cred_handle );
232 
233 OM_uint32 GSSAPI_CALLCONV
234 _gss_ntlm_release_name (
235 	OM_uint32 * /*minor_status*/,
236 	gss_name_t * input_name );
237 
238 void
239 _gss_ntlm_set_key (
240 	struct ntlmv2_key */*key*/,
241 	int /*acceptor*/,
242 	int /*sealsign*/,
243 	unsigned char */*data*/,
244 	size_t /*len*/);
245 
246 OM_uint32 GSSAPI_CALLCONV
247 _gss_ntlm_unwrap (
248 	OM_uint32 * /*minor_status*/,
249 	const gss_ctx_id_t /*context_handle*/,
250 	const gss_buffer_t /*input_message_buffer*/,
251 	gss_buffer_t /*output_message_buffer*/,
252 	int * /*conf_state*/,
253 	gss_qop_t * qop_state );
254 
255 OM_uint32 GSSAPI_CALLCONV
256 _gss_ntlm_verify_mic (
257 	OM_uint32 * /*minor_status*/,
258 	const gss_ctx_id_t /*context_handle*/,
259 	const gss_buffer_t /*message_buffer*/,
260 	const gss_buffer_t /*token_buffer*/,
261 	gss_qop_t * qop_state );
262 
263 OM_uint32 GSSAPI_CALLCONV
264 _gss_ntlm_wrap (
265 	OM_uint32 * /*minor_status*/,
266 	const gss_ctx_id_t /*context_handle*/,
267 	int /*conf_req_flag*/,
268 	gss_qop_t /*qop_req*/,
269 	const gss_buffer_t /*input_message_buffer*/,
270 	int * /*conf_state*/,
271 	gss_buffer_t output_message_buffer );
272 
273 OM_uint32 GSSAPI_CALLCONV
274 _gss_ntlm_wrap_size_limit (
275 	 OM_uint32 * /*minor_status*/,
276 	const gss_ctx_id_t /*context_handle*/,
277 	int /*conf_req_flag*/,
278 	gss_qop_t /*qop_req*/,
279 	OM_uint32 /*req_output_size*/,
280 	OM_uint32 * max_input_size );
281 
282 #endif /* __ntlm_private_h__ */
283