a4d1d447d4b8b42290750eba4f62f03313ebd960
[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 #ifdef HEIMDAL
8 #  include <gssapi.h>
9 #else
10 #  include <gssapi/gssapi.h>
11 #  include <gssapi/gssapi_generic.h>
12 #endif
13 #include <spnego_asn1.h>
14 #include <spnegokrb5.h>
15 #include <der.h>
16 #include <asn1_err.h>
17
18 #define ALLOC(X) (X) = calloc(1, sizeof(*(X)))
19
20 extern gss_OID GSS_KRB5_MECH;
21 extern gss_OID GSS_SPNEGO_MECH;
22
23 OM_uint32
24 gssapi_spnego_encapsulate(
25                         OM_uint32 *,
26                         unsigned char *,
27                         size_t,
28                         gss_buffer_t,
29                         const gss_OID);
30
31 OM_uint32
32 gssapi_spnego_decapsulate(
33                         OM_uint32 *,
34                         gss_buffer_t,
35                         unsigned char **,
36                         size_t *,
37                         const gss_OID);