Skip to content

Commit 3a660dc

Browse files
committed
Tweak kerberos function specs to match prototypes
1 parent df8c2c2 commit 3a660dc

File tree

1 file changed

+44
-8
lines changed

1 file changed

+44
-8
lines changed

contrib/win32/win32compat/kerberos.c

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,55 +166,91 @@ void UninitMitKerberos()
166166
* KfW libs here.
167167
*/
168168

169+
#ifdef __MINGW32__
169170
KFW_CALL gss_indicate_mechs(OM_uint32 *a, gss_OID_set *b)
171+
#else
172+
OM_uint32 KRB5_CALLCONV gss_indicate_mechs(OM_uint32 *a, gss_OID_set *b)
173+
#endif
170174
{
171175
return MitDispatch.gss_indicate_mechs(a, b);
172176
}
173-
177+
#ifdef __MINGW32__
174178
KFW_CALL gss_release_buffer(OM_uint32 *a, gss_buffer_t b)
179+
#else
180+
OM_uint32 KRB5_CALLCONV gss_release_buffer(OM_uint32 *a, gss_buffer_t b)
181+
#endif
175182
{
176183
return MitDispatch.gss_release_buffer(a, b);
177184
}
178-
185+
#ifdef __MINGW32__
179186
KFW_CALL gss_display_status(OM_uint32 *a, OM_uint32 b, int c, gss_OID d,
180187
OM_uint32 *e, gss_buffer_t f)
188+
#else
189+
OM_uint32 KRB5_CALLCONV gss_display_status(OM_uint32 *a, OM_uint32 b, int c, gss_OID d,
190+
OM_uint32 *e, gss_buffer_t f)
191+
#endif
181192
{
182193
return MitDispatch.gss_display_status(a, b, c, d, e, f);
183194
}
184-
195+
#ifdef __MINGW32__
185196
KFW_CALL gss_delete_sec_context(OM_uint32 *a, gss_ctx_id_t *b, gss_buffer_t c)
197+
#else
198+
OM_uint32 KRB5_CALLCONV gss_delete_sec_context(OM_uint32 *a, gss_ctx_id_t *b, gss_buffer_t c)
199+
#endif
186200
{
187201
return MitDispatch.gss_delete_sec_context(a, b, c);
188202
}
189-
203+
#ifdef __MINGW32__
190204
KFW_CALL gss_release_name(OM_uint32 *a, gss_name_t *b)
205+
#else
206+
OM_uint32 KRB5_CALLCONV gss_release_name(OM_uint32 *a, gss_name_t *b)
207+
#endif
191208
{
192209
return MitDispatch.gss_release_name(a, b);
193210
}
194-
211+
#ifdef __MINGW32__
195212
KFW_CALL gss_release_cred(OM_uint32 *a, gss_cred_id_t *b)
213+
#else
214+
OM_uint32 KRB5_CALLCONV gss_release_cred(OM_uint32 *a, gss_cred_id_t *b)
215+
#endif
196216
{
197217
return MitDispatch.gss_release_cred(a, b);
198218
}
199-
219+
#ifdef __MINGW32__
200220
KFW_CALL gss_init_sec_context(OM_uint32 *a, gss_cred_id_t b,
201221
gss_ctx_id_t *c, gss_name_t d,
202222
gss_OID e, OM_uint32 f,
203223
OM_uint32 g, gss_channel_bindings_t h,
204224
gss_buffer_t i, gss_OID * j,
205225
gss_buffer_t k, OM_uint32 *l,
206226
OM_uint32 *m)
227+
#else
228+
OM_uint32 KRB5_CALLCONV gss_init_sec_context(OM_uint32 *a, gss_cred_id_t b,
229+
gss_ctx_id_t *c, gss_name_t d,
230+
gss_OID e, OM_uint32 f,
231+
OM_uint32 g, gss_channel_bindings_t h,
232+
gss_buffer_t i, gss_OID * j,
233+
gss_buffer_t k, OM_uint32 *l,
234+
OM_uint32 *m)
235+
#endif
207236
{
208237
return MitDispatch.gss_init_sec_context(a, b, c, d, e, f, g, h, i, j, k, l, m);
209238
}
210-
239+
#ifdef __MINGW32__
211240
KFW_CALL gss_import_name(OM_uint32 *a, gss_buffer_t b, gss_OID c, gss_name_t *d)
241+
#else
242+
OM_uint32 KRB5_CALLCONV gss_import_name(OM_uint32 *a, gss_buffer_t b, gss_OID c, gss_name_t *d)
243+
#endif
212244
{
213245
return MitDispatch.gss_import_name(a, b, c, d);
214246
}
215-
247+
#ifdef __MINGW32__
216248
KFW_CALL gss_get_mic(OM_uint32 *a, gss_ctx_id_t b, gss_qop_t c,
217249
gss_buffer_t d, gss_buffer_t e)
250+
#else
251+
OM_uint32 KRB5_CALLCONV gss_get_mic(OM_uint32 *a, gss_ctx_id_t b, gss_qop_t c,
252+
gss_buffer_t d, gss_buffer_t e)
253+
#endif
218254
{
219255
return MitDispatch.gss_get_mic(a, b, c, d, e);
220256
}

0 commit comments

Comments
 (0)