From 4f6fbcfc5f685bfd67a69e014eb18df4d984ae36 Mon Sep 17 00:00:00 2001 From: Frank Lahm Date: Mon, 17 Dec 2012 10:49:51 +0100 Subject: [PATCH] Check for KerberosV API funcs krb5_free_keytab_entry_contents and krb5_kt_free_entry --- etc/afpd/status.c | 6 +++++- macros/netatalk.m4 | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/etc/afpd/status.c b/etc/afpd/status.c index caa74d5d..33939abe 100644 --- a/etc/afpd/status.c +++ b/etc/afpd/status.c @@ -440,8 +440,12 @@ static size_t status_directorynames(char *data, } krb5_unparse_name(context, entry.principal, &principal); +#ifdef HAVE_KRB5_FREE_KEYTAB_ENTRY_CONTENTS krb5_free_keytab_entry_contents(context, &entry); - +#endif +#ifdef HAVE_KRB5_KT_FREE_ENTRY + krb5_kt_free_entry(context, &entry); +#endif append_directoryname(&data, offset, &size, diff --git a/macros/netatalk.m4 b/macros/netatalk.m4 index d7a8c8b6..e77aac53 100644 --- a/macros/netatalk.m4 +++ b/macros/netatalk.m4 @@ -585,7 +585,7 @@ save_CFLAGS="$CFLAGS" save_LIBS="$LIBS" CFLAGS="$KRB5_CFLAGS" LIBS="$KRB5_LIBS" -AC_CHECK_FUNCS([krb5_free_unparsed_name krb5_free_error_message]) +AC_CHECK_FUNCS([krb5_free_unparsed_name krb5_free_error_message krb5_free_keytab_entry_contents krb5_kt_free_entry]) CFLAGS="$save_CFLAGS" LIBS="$save_LIBS" ]) -- 2.39.2