From 46c0a47fc6b8c97733dbd687b335784db758e8ea Mon Sep 17 00:00:00 2001 From: Isaac Boukris Date: Tue, 23 Jun 2015 04:13:20 +0300 Subject: Retrieve default mechs at server init This avoids the need to retrieve the list on every auth attempt, and then free it every time. Implemented by adding a server config struct and populating it at server init with gss_indicate_mechs(). Reviewed-by: Simo Sorce --- src/mod_auth_gssapi.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mod_auth_gssapi.h') diff --git a/src/mod_auth_gssapi.h b/src/mod_auth_gssapi.h index 2e05bb0..5beda2d 100644 --- a/src/mod_auth_gssapi.h +++ b/src/mod_auth_gssapi.h @@ -61,6 +61,10 @@ struct mag_config { gss_OID_set_desc *basic_mechs; }; +struct mag_server_config { + gss_OID_set default_mechs; +}; + struct mag_conn { apr_pool_t *pool; gss_ctx_id_t ctx; -- cgit