From 03dfe132d005cc7db4d1d0d041d1e321768f63c4 Mon Sep 17 00:00:00 2001 From: Joerg Pulz Date: Mon, 18 Oct 2010 08:28:42 -0700 Subject: [PATCH] Make build w/o PKINIT Signed-off-by: Love Hornquist Astrand --- kdc/config.c | 5 ++++- kdc/kdc-replay.c | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/kdc/config.c b/kdc/config.c index 742e99211..267bde750 100644 --- a/kdc/config.c +++ b/kdc/config.c @@ -333,6 +333,7 @@ configure(krb5_context context, int argc, char **argv) krb5_kdc_windc_init(context); +#ifdef PKINIT #ifdef __APPLE__ config->enable_pkinit = 1; @@ -345,7 +346,7 @@ configure(krb5_context context, int argc, char **argv) if (config->pkinit_kdc_anchors == NULL) config->pkinit_kdc_anchors = strdup("KEYCHAIN:"); -#endif +#endif /* __APPLE__ */ if (config->enable_pkinit) { if (config->pkinit_kdc_identity == NULL) @@ -361,6 +362,8 @@ configure(krb5_context context, int argc, char **argv) config->pkinit_kdc_revoke); } + +#endif /* PKINIT */ return config; } diff --git a/kdc/kdc-replay.c b/kdc/kdc-replay.c index 5f7269181..edc73fa66 100644 --- a/kdc/kdc-replay.c +++ b/kdc/kdc-replay.c @@ -86,6 +86,7 @@ main(int argc, char **argv) if (ret) krb5_err(context, 1, ret, "krb5_kdc_set_dbinfo"); +#ifdef PKINIT if (config->enable_pkinit) { if (config->pkinit_kdc_identity == NULL) krb5_errx(context, 1, "pkinit enabled but no identity"); @@ -100,6 +101,7 @@ main(int argc, char **argv) config->pkinit_kdc_revoke); } +#endif /* PKINIT */ if (argc != 2) errx(1, "argc != 2");