Skip to content

Commit d3b83e8

Browse files
sigmarisDirectXMan12
authored andcommitted
Use GSS.framework on Mac OS X
On Mac OS X, Apple wants us to use the GSS.framework to compile against GSSAPI, instead of <gssapi/gssapi.h>. With this change we can choose headers to link against at compile time, without changing our source and header files.
1 parent 416d20c commit d3b83e8

19 files changed

+59
-39
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ include *.txt
22
recursive-include docs *.txt
33
recursive-include gssapi *.pxd
44
recursive-include gssapi *.c
5+
recursive-include gssapi *.h

gssapi/raw/creds.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ from gssapi.raw.named_tuples import AcquireCredResult, AddCredResult
1313
from gssapi.raw.named_tuples import InquireCredResult, InquireCredByMechResult
1414

1515

16-
cdef extern from "gssapi.h":
16+
cdef extern from "python_gssapi.h":
1717
OM_uint32 gss_acquire_cred(OM_uint32 *min_stat,
1818
const gss_name_t name,
1919
OM_uint32 ttl,

gssapi/raw/cython_types.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from libc.stdint cimport uint32_t
22

33

4-
cdef extern from "gssapi.h":
4+
cdef extern from "python_gssapi.h":
55
# basic types
66
ctypedef uint32_t OM_uint32
77

gssapi/raw/exceptions.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ from gssapi.raw.misc import GSSError
55
"""Specific exceptions for GSSAPI errors"""
66

77

8-
cdef extern from "gssapi.h":
8+
cdef extern from "python_gssapi.h":
99
# calling errors
1010
OM_uint32 GSS_S_CALL_INACCESSIBLE_READ
1111
OM_uint32 GSS_S_CALL_INACCESSIBLE_WRITE

gssapi/raw/ext_cred_imp_exp.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from gssapi.raw.misc import GSSError
1212
from gssapi.raw.named_tuples import AcquireCredResult, AddCredResult
1313

1414

15-
cdef extern from "gssapi/gssapi_ext.h":
15+
cdef extern from "python_gssapi_ext.h":
1616
OM_uint32 gss_export_cred(OM_uint32 *min_stat, gss_cred_id_t cred_handle,
1717
gss_buffer_t token) nogil
1818

gssapi/raw/ext_cred_store.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ from gssapi.raw.named_tuples import StoreCredResult
1818
from gssapi.raw.misc import GSSError
1919

2020

21-
cdef extern from "gssapi/gssapi_ext.h":
21+
cdef extern from "python_gssapi_ext.h":
2222
ctypedef struct gss_key_value_element_desc:
2323
const char *key
2424
const char *value

gssapi/raw/ext_password.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ from gssapi.raw.names cimport Name
1515
from gssapi.raw.misc import GSSError
1616
from gssapi.raw.named_tuples import AcquireCredResult
1717

18-
cdef extern from "gssapi/gssapi_ext.h":
18+
cdef extern from "python_gssapi_ext.h":
1919
OM_uint32 gss_acquire_cred_with_password(OM_uint32 *min_stat,
2020
const gss_name_t desired_name,
2121
const gss_buffer_t password,

gssapi/raw/ext_password_add.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ from gssapi.raw.oids cimport OID
1616
from gssapi.raw.misc import GSSError
1717
from gssapi.raw.named_tuples import AddCredResult
1818

19-
cdef extern from "gssapi/gssapi_ext.h":
19+
cdef extern from "python_gssapi_ext.h":
2020
OM_uint32 gss_add_cred_with_password(OM_uint32 *min_stat,
2121
const gss_cred_id_t input_cred_handle,
2222
const gss_name_t desired_name,

gssapi/raw/ext_rfc5588.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ from gssapi.raw.cython_converters cimport c_c_ttl_to_py, c_py_ttl_to_c
1111
from gssapi.raw.named_tuples import StoreCredResult
1212
from gssapi.raw.misc import GSSError
1313

14-
cdef extern from "gssapi.h":
14+
cdef extern from "python_gssapi.h":
1515
OM_uint32 gss_store_cred(OM_uint32 *min_stat,
1616
gss_cred_id_t input_creds,
1717
gss_cred_usage_t cred_usage,

gssapi/raw/ext_s4u.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from gssapi.raw.misc import GSSError
1212
from gssapi.raw.named_tuples import AcquireCredResult, AddCredResult
1313

1414

15-
cdef extern from "gssapi/gssapi_ext.h":
15+
cdef extern from "python_gssapi_ext.h":
1616
OM_uint32 gss_acquire_cred_impersonate_name(OM_uint32 *min_stat,
1717
const gss_cred_id_t imp_creds,
1818
const gss_name_t name,

0 commit comments

Comments
 (0)