summaryrefslogtreecommitdiff
path: root/lib/ZInit.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2009-04-14 12:46:00 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2009-04-14 12:46:00 +0000
commit3dd9abb58c23e7441fa6019fb00992d017ac6a36 (patch)
tree2ff3be2d55f71869343c0ebe6cb134b3e5222360 /lib/ZInit.c
parentd95a96414d5d0c27d994f4b638491d27b6725707 (diff)
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.
Diffstat (limited to 'lib/ZInit.c')
-rw-r--r--lib/ZInit.c8
1 files changed, 8 insertions, 0 deletions
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)
{