accepted ticket [1859455]: <sys/types.h> should be included explicitly
[mod_auth_kerb.git] / spnegokrb5 / spnegokrb5_locl.h
1 #include <stdlib.h>
2 #include <errno.h>
3 #include <string.h>
4
5 #include "config.h"
6
7 #if HAVE_SYS_TYPES_H
8 #include <sys/types.h>
9 #endif
10
11 #ifdef HEIMDAL
12 #  include <gssapi.h>
13 #else
14 #  include <gssapi/gssapi.h>
15 #  include <gssapi/gssapi_generic.h>
16 #endif
17 #include <spnego_asn1.h>
18 #include <spnegokrb5.h>
19 #include <der.h>
20 #include <asn1_err.h>
21
22 #define ALLOC(X) (X) = calloc(1, sizeof(*(X)))
23
24 extern gss_OID GSS_KRB5_MECH;
25 extern gss_OID GSS_SPNEGO_MECH;
26
27 OM_uint32
28 gssapi_spnego_encapsulate(
29                         OM_uint32 *,
30                         unsigned char *,
31                         size_t,
32                         gss_buffer_t,
33                         const gss_OID);
34
35 OM_uint32
36 gssapi_spnego_decapsulate(
37                         OM_uint32 *,
38                         gss_buffer_t,
39                         unsigned char **,
40                         size_t *,
41                         const gss_OID);