From a45db02a82a42d6ac616c3a1efe73272ccbd69b5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 19 Jan 2003 22:25:34 +0000 Subject: Merge in more of the SuSE patches for Heimdal. These changes show how to add a function without an explicit #ifdef HEIMDAL which I'm trying to avoid. Jeremy. (This used to be commit 77aeb262ef7c7cd3d206afe2d5445caaca943dfd) --- source3/include/config.h.in | 9 +++++++++ source3/include/includes.h | 12 ++++++++++++ 2 files changed, 21 insertions(+) (limited to 'source3/include') diff --git a/source3/include/config.h.in b/source3/include/config.h.in index db9cd86cca..46ccf911d1 100644 --- a/source3/include/config.h.in +++ b/source3/include/config.h.in @@ -552,6 +552,15 @@ /* Define to 1 if you have the header file. */ #undef HAVE_KRB5_H +/* Whether krb5_set_default_in_tkt_etypes, is available */ +#undef HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES + +/* Whether krb5_set_default_tgs_ktypes is available */ +#undef HAVE_KRB5_SET_DEFAULT_TGS_KTYPES + +/* Whether krb5_set_real_time is available */ +#undef HAVE_KRB5_SET_REAL_TIME + /* Define to 1 if you have the header file. */ #undef HAVE_LASTLOG_H diff --git a/source3/include/includes.h b/source3/include/includes.h index eb89d6f2af..0142dab724 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -1208,5 +1208,17 @@ time_t timegm(struct tm *tm); #define VXFS_QUOTA #endif +#if defined(HAVE_KRB5) + +#ifndef KRB5_SET_REAL_TIME +krb5_error_code krb5_set_real_time(krb5_context context, int32_t seconds, int32_t microseconds); +#endif + +#ifndef HAVE_KRB5_SET_DEFAULT_TGS_KTYPES +krb5_error_code krb5_set_default_tgs_ktypes(krb5_context ctx, const krb5_enctype *enc); +#endif + +#endif /* HAVE_KRB5 */ + #endif /* _INCLUDES_H */ -- cgit