summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2012-05-31 12:44:50 +0300
committerAndreas Schneider <asn@cryptomilk.org>2012-06-01 11:23:21 +0200
commit6e9aca7d4100e3c0f3a9b0ffe21fb3b4a8a5c87f (patch)
tree8bef4e641db762f625660d0a8932f8b9229deb8c /lib
parentf8c447b1a48eaf12dcf70b92fd7525c4ad26c246 (diff)
downloadsamba-6e9aca7d4100e3c0f3a9b0ffe21fb3b4a8a5c87f.tar.gz
samba-6e9aca7d4100e3c0f3a9b0ffe21fb3b4a8a5c87f.tar.bz2
samba-6e9aca7d4100e3c0f3a9b0ffe21fb3b4a8a5c87f.zip
waf: check for krb5_create_checksum and krb5_creds.flags for some Heimdal versions
Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri Jun 1 11:23:21 CEST 2012 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r--lib/krb5_wrap/krb5_samba.c4
1 files changed, 4 insertions, 0 deletions
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);
}