File: spnegokrb5_locl.h

package info (click to toggle)
libapache-mod-auth-kerb 5.4-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 632 kB
  • ctags: 350
  • sloc: ansic: 3,236; makefile: 96; sh: 40
file content (41 lines) | stat: -rw-r--r-- 903 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <stdlib.h>
#include <errno.h>
#include <string.h>

#include "config.h"

#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

#ifdef HEIMDAL
#  include <gssapi.h>
#else
#  include <gssapi/gssapi.h>
#  include <gssapi/gssapi_generic.h>
#endif
#include <spnego_asn1.h>
#include <spnegokrb5.h>
#include <der.h>
#include <asn1_err.h>

#define ALLOC(X) (X) = calloc(1, sizeof(*(X)))

extern gss_OID GSS_KRB5_MECH;
extern gss_OID GSS_SPNEGO_MECH;

OM_uint32
gssapi_spnego_encapsulate(
                        OM_uint32 *,
                        unsigned char *,
                        size_t,
                        gss_buffer_t,
                        const gss_OID);

OM_uint32
gssapi_spnego_decapsulate(
                        OM_uint32 *,
                        gss_buffer_t,
                        unsigned char **,
                        size_t *,
                        const gss_OID);