From 6e9aca7d4100e3c0f3a9b0ffe21fb3b4a8a5c87f Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Thu, 31 May 2012 12:44:50 +0300 Subject: waf: check for krb5_create_checksum and krb5_creds.flags for some Heimdal versions Signed-off-by: Andreas Schneider Autobuild-User: Andreas Schneider Autobuild-Date: Fri Jun 1 11:23:21 CEST 2012 on sn-devel-104 --- lib/krb5_wrap/krb5_samba.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c index 572d39ebf5..dc90f19075 100644 --- a/lib/krb5_wrap/krb5_samba.c +++ b/lib/krb5_wrap/krb5_samba.c @@ -2162,7 +2162,11 @@ krb5_error_code smb_krb5_cc_get_lifetime(krb5_context context, } while ((kerr = krb5_cc_next_cred(context, id, &cursor, &cred)) == 0) { +#ifndef HAVE_FLAGS_IN_KRB5_CREDS if (cred.ticket_flags & TKT_FLG_INITIAL) { +#else + if (cred.flags.b.initial) { +#endif if (now < cred.times.endtime) { *t = (time_t) (cred.times.endtime - now); } -- cgit