sbonazzo / rpms / cyrus-sasl

Forked from rpms/cyrus-sasl 2 years ago
Clone

Blame SOURCES/cyrus-sasl-2.1.26-keytab.patch

b9abc1
diff --git a/cmulocal/sasl2.m4 b/cmulocal/sasl2.m4
b9abc1
index 3c2841a..b086b8f 100644
b9abc1
--- a/cmulocal/sasl2.m4
b9abc1
+++ b/cmulocal/sasl2.m4
b9abc1
@@ -269,6 +269,18 @@ if test "$gssapi" != no; then
b9abc1
   cmu_save_LIBS="$LIBS"
b9abc1
   LIBS="$LIBS $GSSAPIBASE_LIBS"
b9abc1
   AC_CHECK_FUNCS(gsskrb5_register_acceptor_identity)
b9abc1
+  if test "$ac_cv_func_gsskrb5_register_acceptor_identity" = no ; then
b9abc1
+    AC_CHECK_HEADERS(gssapi/gssapi_krb5.h)
b9abc1
+    if test "$ac_cv_header_gssapi_gssapi_krb5_h" = "yes"; then
b9abc1
+      AC_CHECK_DECL(gsskrb5_register_acceptor_identity,
b9abc1
+                    [AC_DEFINE(HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY,1,
b9abc1
+                               [Define if your GSSAPI implementation defines gsskrb5_register_acceptor_identity])],,
b9abc1
+                    [
b9abc1
+                    AC_INCLUDES_DEFAULT
b9abc1
+                    #include <gssapi/gssapi_krb5.h>
b9abc1
+                    ])
b9abc1
+    fi
b9abc1
+  fi
b9abc1
   AC_CHECK_FUNCS(gss_decapsulate_token)
b9abc1
   AC_CHECK_FUNCS(gss_encapsulate_token)
b9abc1
   AC_CHECK_FUNCS(gss_oid_equal)
b9abc1
diff --git a/plugins/gssapi.c b/plugins/gssapi.c
b9abc1
index 6be9d23..e6fcf46 100644
b9abc1
--- a/plugins/gssapi.c
b9abc1
+++ b/plugins/gssapi.c
b9abc1
@@ -51,6 +51,8 @@
b9abc1
 #include <gssapi/gssapi.h>
b9abc1
 #endif
b9abc1
 
b9abc1
+#include <gssapi/gssapi_krb5.h>
b9abc1
+
b9abc1
 #ifdef WIN32
b9abc1
 #  include <winsock2.h>
b9abc1