From: Jeremy Allison Date: Fri, 5 Nov 2004 00:57:29 +0000 (+0000) Subject: r3538: Fix the build with the latest Heimdal code. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5639 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34275bae787762646f02ea1dec19d7b3a9a733a3;p=thirdparty%2Fsamba.git r3538: Fix the build with the latest Heimdal code. Jeremy. --- diff --git a/source/configure.in b/source/configure.in index d32d6843586..170b3c0d1c3 100644 --- a/source/configure.in +++ b/source/configure.in @@ -2795,6 +2795,18 @@ if test x"$with_ads_support" != x"no"; then LIBS="$KRB5_LIBS $LIBS" + AC_CACHE_CHECK([for krb5_encrypt_block type], + samba_cv_HAVE_KRB5_ENCRYPT_BLOCK,[ + AC_TRY_COMPILE([#include ], + [krb5_encrypt_block block;], + samba_cv_HAVE_KRB5_ENCRYPT_BLOCK=yes, + samba_cv_HAVE_KRB5_ENCRYPT_BLOCK=no)]) + + if test x"$samba_cv_HAVE_KRB5_ENCRYPT_BLOCK" = x"yes"; then + AC_DEFINE(HAVE_KRB5_ENCRYPT_BLOCK,1, + [Whether the type krb5_encrypt_block exists]) + fi + AC_CACHE_CHECK([for addrtype in krb5_address], samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS,[ AC_TRY_COMPILE([#include ], diff --git a/source/include/includes.h b/source/include/includes.h index 3999ef48bd7..6a1681fe1f1 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -455,13 +455,9 @@ #if HAVE_GSSAPI_H #include -#endif - -#if HAVE_GSSAPI_GSSAPI_H +#elif HAVE_GSSAPI_GSSAPI_H #include -#endif - -#if HAVE_GSSAPI_GSSAPI_GENERIC_H +#elif HAVE_GSSAPI_GSSAPI_GENERIC_H #include #endif diff --git a/source/libsmb/clikrb5.c b/source/libsmb/clikrb5.c index bc52805dfff..068e7822072 100644 --- a/source/libsmb/clikrb5.c +++ b/source/libsmb/clikrb5.c @@ -80,7 +80,7 @@ #error UNKNOWN_ADDRTYPE #endif -#if defined(HAVE_KRB5_PRINCIPAL2SALT) && defined(HAVE_KRB5_USE_ENCTYPE) && defined(HAVE_KRB5_STRING_TO_KEY) +#if defined(HAVE_KRB5_PRINCIPAL2SALT) && defined(HAVE_KRB5_USE_ENCTYPE) && defined(HAVE_KRB5_STRING_TO_KEY) && defined(HAVE_KRB5_ENCRYPT_BLOCK) int create_kerberos_key_from_string_direct(krb5_context context, krb5_principal host_princ, krb5_data *password,