From 3dd9abb58c23e7441fa6019fb00992d017ac6a36 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Tue, 14 Apr 2009 12:46:00 +0000 Subject: Export a new variable, Zauthtype, which indicates what sort of authentication the library was compiled for. Use this variable in the tests such that they will pass (and, like, test something) if the library was not compiled with authentication. --- lib/ZInit.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/ZInit.c') diff --git a/lib/ZInit.c b/lib/ZInit.c index 42ef2ad..d37ba04 100644 --- a/lib/ZInit.c +++ b/lib/ZInit.c @@ -38,6 +38,14 @@ static const char rcsid_ZInitialize_c[] = static int z_get_host_realm_replacement(char *, char ***); #endif +#if defined(HAVE_KRB5) +int Zauthtype = 5; +#elif defined(HAVE_KRB4) +int Zauthtype = 4; +#else +int Zauthtype = 0; +#endif + Code_t ZInitialize(void) { -- cgit v1.2.3