File: python_gssapi_ext.h

package info (click to toggle)
python-gssapi 1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 876 kB
  • sloc: python: 3,707; sh: 198; makefile: 154; ansic: 60
file content (48 lines) | stat: -rw-r--r-- 1,999 bytes parent folder | download | duplicates (3)
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
42
43
44
45
46
47
48
#ifdef OSX_HAS_GSS_FRAMEWORK
#include <GSS/GSS.h>

/*
 * Starting in macOS 10.7, Apple's GSS defines these in
 * gssapi_private.h. However, that header isn't present on the host, so we
 * need to explicitly define them.  The originals can be found at:
 * https://opensource.apple.com/source/Heimdal/Heimdal-172.18/lib/gssapi/gssapi/gssapi_spi.h.auto.html
 */

OM_uint32 __ApplePrivate_gss_unwrap_iov(OM_uint32 *minor_status,
                                        gss_ctx_id_t context_handle,
                                        int *conf_state, gss_qop_t *qop_state,
                                        gss_iov_buffer_desc *iov,
                                        int iov_count);

OM_uint32 __ApplePrivate_gss_wrap_iov(OM_uint32 *minor_status,
                                      gss_ctx_id_t context_handle,
                                      int conf_req_flag, gss_qop_t qop_req,
                                      int *conf_state,
                                      gss_iov_buffer_desc *iov,
                                      int iov_count);

OM_uint32 __ApplePrivate_gss_wrap_iov_length(OM_uint32 *minor_status,
                                             gss_ctx_id_t context_handle,
                                             int conf_req_flag,
                                             gss_qop_t qop_req,
                                             int *conf_state,
                                             gss_iov_buffer_desc *iov,
                                             int iov_count);

OM_uint32 __ApplePrivate_gss_release_iov_buffer(OM_uint32 *minor_status,
                                                gss_iov_buffer_desc *iov,
                                                int iov_count);

#else /* !OSX_HAS_GSS_FRAMEWORK */

#if defined(__MINGW32__) && defined(__MSYS__)
#include <gss.h>
#else
#ifdef HAS_GSSAPI_EXT_H
#include <gssapi/gssapi_ext.h>
#else
#include <gssapi/gssapi.h>
#endif
#endif

#endif /* !OSX_HAS_GSS_FRAMEWORK */