summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-10-15 13:15:20 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-10-17 13:17:26 +0200
commit19fb7706043237c25e202a2b4bd51b4287571921 (patch)
tree0947f85f7e2f992adf7536497a7c0ff218808502 /src
parent89e890c034474fcd6e5bf7148ab0c44a6b2477d5 (diff)
downloadsssd-19fb7706043237c25e202a2b4bd51b4287571921.tar.gz
sssd-19fb7706043237c25e202a2b4bd51b4287571921.tar.bz2
sssd-19fb7706043237c25e202a2b4bd51b4287571921.zip
heimdal: Add fallback for krb5_authdatatype
Diffstat (limited to 'src')
-rw-r--r--src/external/krb5.m42
-rw-r--r--src/util/sss_krb5.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/external/krb5.m4 b/src/external/krb5.m4
index 7cad5cb9..a29056d3 100644
--- a/src/external/krb5.m4
+++ b/src/external/krb5.m4
@@ -38,7 +38,7 @@ SAVE_LIBS=$LIBS
CFLAGS="$CFLAGS $KRB5_CFLAGS"
LIBS="$LIBS $KRB5_LIBS"
AC_CHECK_HEADERS([krb5.h krb5/krb5.h profile.h])
-AC_CHECK_TYPES([krb5_ticket_times, krb5_times, krb5_trace_info], [], [],
+AC_CHECK_TYPES([krb5_ticket_times, krb5_times, krb5_trace_info, krb5_authdatatype], [], [],
[ #ifdef HAVE_KRB5_KRB5_H
#include <krb5/krb5.h>
#else
diff --git a/src/util/sss_krb5.h b/src/util/sss_krb5.h
index 2ddcca97..2481dc12 100644
--- a/src/util/sss_krb5.h
+++ b/src/util/sss_krb5.h
@@ -169,6 +169,10 @@ typedef krb5_times sss_krb5_ticket_times;
/* Redirect libkrb5 tracing towards our DEBUG statements */
errno_t sss_child_set_krb5_tracing(krb5_context ctx);
+#ifndef HAVE_KRB5_AUTHDATATYPE
+typedef int32_t krb5_authdatatype;
+#endif
+
krb5_error_code sss_krb5_find_authdata(krb5_context context,
krb5_authdata *const *ticket_authdata,
krb5_authdata *const *ap_req_authdata,