diff options
author | nalin <nalin@517b70f8-ed25-0410-8bf6-f5db08f7b76e> | 2005-11-02 23:26:57 +0000 |
---|---|---|
committer | nalin <nalin@517b70f8-ed25-0410-8bf6-f5db08f7b76e> | 2005-11-02 23:26:57 +0000 |
commit | 2dcf8c43c774c814fbaedee34f0633db6c53ab10 (patch) | |
tree | faf188ec1a645e4fad8503021a33cc96a63004ad | |
parent | b74a955cdf6800aae538fef69b8ebb3e2e61b0d0 (diff) |
* configure.ac,src/krb5-auth-dialog.c: just test for the definitions of the
flags directly.
git-svn-id: http://svn.gnome.org/svn/krb5-auth-dialog/trunk@43 517b70f8-ed25-0410-8bf6-f5db08f7b76e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/krb5-auth-dialog.c | 12 |
3 files changed, 11 insertions, 8 deletions
@@ -1,5 +1,10 @@ 2005-11-02 Nalin Dahyabhai <nalin@redhat.com> + * configure.ac,src/krb5-auth-dialog.c: just test for the definitions + of the flags directly. + +2005-11-02 Nalin Dahyabhai <nalin@redhat.com> + * etpo/lexer.l,etpo/grammar.y: silence a couple of compiler warnings about implicitly-declared functions. diff --git a/configure.ac b/configure.ac index 52497b4..242aa6c 100644 --- a/configure.ac +++ b/configure.ac @@ -44,8 +44,6 @@ AC_CHECK_MEMBERS(krb5_creds.flags.b.forwardable,,,[#include <krb5.h>]) AC_CHECK_MEMBERS(krb5_creds.flags.b.renewable,,,[#include <krb5.h>]) AC_CHECK_MEMBERS(krb5_creds.flags.b.proxiable,,,[#include <krb5.h>]) AC_CHECK_MEMBERS(krb5_creds.flags,,,[#include <krb5.h>]) -AC_CHECK_DECLS([KDC_OPT_FORWARDABLE,KDC_OPT_RENEWABLE,KDC_OPT_PROXIABLE]) -AC_CHECK_DECLS([TKT_FLG_FORWARDABLE,TKT_FLG_RENEWABLE,TKT_FLG_PROXIABLE]) AC_MSG_CHECKING(if a krb5_principal->realm is a char*) AC_COMPILE_IFELSE([ $ac_includes_default diff --git a/src/krb5-auth-dialog.c b/src/krb5-auth-dialog.c index 8852cc7..1b1b6f6 100644 --- a/src/krb5-auth-dialog.c +++ b/src/krb5-auth-dialog.c @@ -271,7 +271,7 @@ credentials_expiring (gpointer *data) return TRUE; } -#if defined(HAVE_KRB5_CREDS_TICKET_FLAGS) && defined(HAVE_DECL_TKT_FLG_FORWARDABLE) +#if defined(HAVE_KRB5_CREDS_TICKET_FLAGS) && defined(TKT_FLG_FORWARDABLE) static int get_cred_forwardable(krb5_creds *creds) { @@ -283,7 +283,7 @@ get_cred_forwardable(krb5_creds *creds) { return creds->flags.b.forwardable; } -#elif defined(HAVE_KRB5_CREDS_FLAGS) && defined(HAVE_DECL_KDC_OPT_FORWARDABLE) +#elif defined(HAVE_KRB5_CREDS_FLAGS) && defined(KDC_OPT_FORWARDABLE) static int get_cred_forwardable(krb5_creds *creds) { @@ -291,7 +291,7 @@ get_cred_forwardable(krb5_creds *creds) } #endif -#if defined(HAVE_KRB5_CREDS_TICKET_FLAGS) && defined(HAVE_DECL_TKT_FLG_RENEWABLE) +#if defined(HAVE_KRB5_CREDS_TICKET_FLAGS) && defined(TKT_FLG_RENEWABLE) static int get_cred_renewable(krb5_creds *creds) { @@ -303,7 +303,7 @@ get_cred_renewable(krb5_creds *creds) { return creds->flags.b.renewable; } -#elif defined(HAVE_KRB5_CREDS_FLAGS) && defined(HAVE_DECL_KDC_OPT_RENEWABLE) +#elif defined(HAVE_KRB5_CREDS_FLAGS) && defined(KDC_OPT_RENEWABLE) static int get_cred_renewable(krb5_creds *creds) { @@ -311,7 +311,7 @@ get_cred_renewable(krb5_creds *creds) } #endif -#if defined(HAVE_KRB5_CREDS_TICKET_FLAGS) && defined(HAVE_DECL_TKT_FLG_PROXIABLE) +#if defined(HAVE_KRB5_CREDS_TICKET_FLAGS) && defined(TKT_FLG_PROXIABLE) static int get_cred_proxiable(krb5_creds *creds) { @@ -323,7 +323,7 @@ get_cred_proxiable(krb5_creds *creds) { return creds->flags.b.proxiable; } -#elif defined(HAVE_KRB5_CREDS_FLAGS) && defined(HAVE_DECL_KDC_OPT_PROXIABLE) +#elif defined(HAVE_KRB5_CREDS_FLAGS) && defined(KDC_OPT_PROXIABLE) static int get_cred_proxiable(krb5_creds *creds) { |