From 066ef66648f0d955aa310d0991d888afea9b68d7 Mon Sep 17 00:00:00 2001 From: Benjamin Kaduk Date: Wed, 4 Mar 2015 13:34:53 -0500 Subject: [PATCH] configure: check for some more krb5 functions We will want to create a krb5_principal object that is used as a sigil for comparison against, and need to do so in a portable fashion. krb5_parse_name and krb5_unparse_name have been around for a long time, but the counterpart krb5_free_unparsed_name is not always available, so provide compatibility for it. krb5_free_keytab_entry_contents is only a symbol in MIT krb5; we will need a compat macro on Heimdal systems where it is not present. Change-Id: I1cfe12910adac39216b8c7dd337b7e22d73555ed Reviewed-on: https://gerrit.openafs.org/11785 Reviewed-by: Benjamin Kaduk Tested-by: BuildBot Reviewed-by: Michael Meffie --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 627d1caba6..81384800e7 100644 --- a/configure.ac +++ b/configure.ac @@ -60,6 +60,8 @@ AS_IF([test x"$KRB5_LIBS" != x], krb5_c_encrypt \ krb5_decode_ticket \ krb5_enctype_enable \ + krb5_free_keytab_entry_contents \ + krb5_free_unparsed_name \ krb5_get_init_creds_opt_alloc \ krb5_get_prompt_types \ krb5_princ_size \ @@ -87,6 +89,8 @@ AS_IF([test x"$KRB5_LIBS" != x], [AC_MSG_ERROR([Cannot find a usable com_err.h])]) AC_CHECK_MEMBERS([krb5_creds.keyblock, krb5_creds.keyblock.enctype, krb5_creds.session, krb5_prompt.type], [], [], [#include ]) + AC_CHECK_MEMBERS([krb5_keytab_entry.key, krb5_keytab_entry.keyblock], + [], [], [#include ]) dnl If we have krb5_creds.session, we are using heimdal dnl If we're using heimdal, aklog needs libasn1 for encode_EncTicketPart and a dnl few other functions. But just aklog; not any of the other stuff that uses