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