diff options
author | Isaac Boukris <iboukris@gmail.com> | 2015-06-23 04:13:20 +0300 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-06-25 17:10:35 -0400 |
commit | 46c0a47fc6b8c97733dbd687b335784db758e8ea (patch) | |
tree | 34c2a62a4439f13da3b6193d21c7c311bc0fe669 /src/mod_auth_gssapi.h | |
parent | c27219caa2d75baf854b1535eb222d679fbe4fcd (diff) | |
download | mod_auth_gssapi-46c0a47fc6b8c97733dbd687b335784db758e8ea.tar.gz mod_auth_gssapi-46c0a47fc6b8c97733dbd687b335784db758e8ea.tar.xz mod_auth_gssapi-46c0a47fc6b8c97733dbd687b335784db758e8ea.zip |
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 <simo@redhat.com>
Diffstat (limited to 'src/mod_auth_gssapi.h')
-rw-r--r-- | src/mod_auth_gssapi.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; |