summaryrefslogtreecommitdiffstats
path: root/auth_mellon_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth_mellon_handler.c')
-rw-r--r--auth_mellon_handler.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/auth_mellon_handler.c b/auth_mellon_handler.c
index f93ba6e..1d42fd7 100644
--- a/auth_mellon_handler.c
+++ b/auth_mellon_handler.c
@@ -218,13 +218,16 @@ static char *am_generate_metadata(apr_pool_t *p, request_rec *r)
*/
static guint am_server_add_providers(am_dir_cfg_rec *cfg, request_rec *r)
{
- const char *idp_public_key_file;
apr_size_t index;
+#ifndef HAVE_lasso_server_load_metadata
+ const char *idp_public_key_file;
+
if (cfg->idp_metadata->nelts == 1)
idp_public_key_file = cfg->idp_public_key_file;
else
idp_public_key_file = NULL;
+#endif /* ! HAVE_lasso_server_load_metadata */
for (index = 0; index < cfg->idp_metadata->nelts; index++) {
const am_metadata_t *idp_metadata;