From: Derrick Brashear Date: Fri, 18 Apr 2008 14:56:21 +0000 (+0000) Subject: DEVEL15-klog-aix-missing-symbols-20080418 X-Git-Tag: openafs-devel-1_5_35~13 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=05431752c5e11c1b7d233644cdd34f60b7792f6b;p=packages%2Fo%2Fopenafs.git DEVEL15-klog-aix-missing-symbols-20080418 LICENSE IPL10 aix's krb5 isn't heimdal or mit. it has dangling symbols. yay! (cherry picked from commit f3056feadbd6866bddc20e040b5005baeb4c8cad) --- diff --git a/src/aklog/klog.c b/src/aklog/klog.c index f75dbac10..573be06dc 100644 --- a/src/aklog/klog.c +++ b/src/aklog/klog.c @@ -309,26 +309,24 @@ klog_prompter(krb5_context context, { krb5_error_code code; int i, type; -#ifndef USING_HEIMDAL +#if !defined(USING_HEIMDAL) && defined(HAVE_KRB5_GET_PROMPT_TYPES) krb5_prompt_type *types; #endif struct kp_arg *kparg = (struct kp_arg *) a; code = krb5_prompter_posix(context, a, name, banner, num_prompts, prompts); if (code) return code; -#ifndef USING_HEIMDAL +#if !defined(USING_HEIMDAL) && defined(HAVE_KRB5_GET_PROMPT_TYPES) if ((types = krb5_get_prompt_types(context))) #endif for (i = 0; i < num_prompts; ++i) { -#ifdef USING_HEIMDAL - type = prompts[i].type; -#else +#if !defined(USING_HEIMDAL) && defined(HAVE_KRB5_GET_PROMPT_TYPES) type = types[i]; +#else + type = prompts[i].type; #endif #if 0 - printf ("i%d t%d <%.*s>\n", i, -type, -prompts[i].reply->length, -prompts[i].reply->data); + printf ("i%d t%d <%.*s>\n", i, type, prompts[i].reply->length, + prompts[i].reply->data); #endif switch(type) { case KRB5_PROMPT_TYPE_PASSWORD: diff --git a/src/cf/kerberos.m4 b/src/cf/kerberos.m4 index f8dda460b..9bae17af8 100644 --- a/src/cf/kerberos.m4 +++ b/src/cf/kerberos.m4 @@ -58,7 +58,7 @@ if test X$conf_krb5 = XYES; then CPPFLAGS="$CPPFLAGS $KRB5CFLAGS" save_LIBS="$LIBS" LIBS="$LIBS $KRB5LIBS" - AC_CHECK_FUNCS([add_to_error_table add_error_table krb5_princ_size krb5_principal_get_comp_string encode_krb5_enc_tkt_part encode_krb5_ticket krb5_c_encrypt krb5_c_encrypt_length krb5_cc_register krb5_decode_ticket]) + AC_CHECK_FUNCS([add_to_error_table add_error_table krb5_princ_size krb5_principal_get_comp_string encode_krb5_enc_tkt_part encode_krb5_ticket krb5_c_encrypt krb5_c_encrypt_length krb5_cc_register krb5_decode_ticket krb5_get_prompt_types]) AC_CHECK_FUNCS([krb5_524_convert_creds], , [AC_CHECK_FUNCS([krb524_convert_creds_kdc], , [AC_CHECK_LIB([krb524], [krb524_convert_creds_kdc],