Conf file is now in source tree
[mod_auth_kerb.git] / spnegokrb5 / spnegokrb5.h
index 84a4db8..84359ee 100644 (file)
@@ -5,9 +5,22 @@
 extern "C" {
 #endif
 
-#include <gssapi.h>
+#include "config.h"
+#ifdef HEIMDAL
+#  include <gssapi.h>
+#else
+#  include <gssapi/gssapi.h>
+#endif
+
+#ifndef KRB5_LIB_FUNCTION
+#  if defined(_WIN32)
+#    define KRB5_LIB_FUNCTION _stdcall
+#  else
+#    define KRB5_LIB_FUNCTION
+#  endif
+#endif
 
-OM_uint32 gss_init_sec_context_spnego(
+OM_uint32 KRB5_LIB_FUNCTION gss_init_sec_context_spnego(
             OM_uint32 *,
             const gss_cred_id_t,
             gss_ctx_id_t *,
@@ -22,7 +35,7 @@ OM_uint32 gss_init_sec_context_spnego(
             OM_uint32 *,
             OM_uint32 *);
 
-OM_uint32 gss_accept_sec_context_spnego
+OM_uint32 KRB5_LIB_FUNCTION gss_accept_sec_context_spnego
            (OM_uint32 *,
             gss_ctx_id_t *,
             const gss_cred_id_t,