sbonazzo / rpms / cyrus-sasl

Forked from rpms/cyrus-sasl 2 years ago
Clone

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

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