X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fmod_auth_gssapi.h;h=b606803093b1e8634f0d1ddd26f268ef1014435a;hb=79cb8bb8418cca0c408db3c79d78fa23d5e18564;hp=efe230dda6a9d5fde01388ab0ed8a75891f9b779;hpb=e6d9a30c889fe042cf3ad5073519f348dbe924f0;p=mod_auth_gssapi.git diff --git a/src/mod_auth_gssapi.h b/src/mod_auth_gssapi.h index efe230d..b606803 100644 --- a/src/mod_auth_gssapi.h +++ b/src/mod_auth_gssapi.h @@ -5,6 +5,8 @@ #include #include #include +#include +#include #define APR_WANT_STRFUNC #include "apr_want.h" @@ -17,6 +19,7 @@ #include #include #include +#include /* apache's httpd.h drags in empty PACKAGE_* variables. * undefine them to avoid annoying compile warnings as they @@ -33,25 +36,41 @@ #define MIN_SESS_EXP_TIME 300 /* 5 minutes validity minimum */ +#ifdef HAVE_GSS_ACQUIRE_CRED_FROM +# ifdef HAVE_GSS_STORE_CRED_INTO +#define HAVE_CRED_STORE 1 +# endif +#endif + struct mag_config { apr_pool_t *pool; bool ssl_only; bool map_to_local; bool gss_conn_ctx; + bool send_persist; bool use_sessions; +#ifdef HAVE_CRED_STORE bool use_s4u2proxy; char *deleg_ccache_dir; gss_key_value_set_desc *cred_store; +#endif struct seal_key *mag_skey; bool use_basic_auth; + gss_OID_set_desc *allowed_mechs; }; struct mag_conn { - apr_pool_t *parent; + apr_pool_t *pool; gss_ctx_id_t ctx; bool established; const char *user_name; const char *gss_name; time_t expiration; - const char *auth_type; + int auth_type; + bool delegated; + struct databuf basic_hash; }; + +#define discard_const(ptr) ((void *)((uintptr_t)(ptr))) + +struct mag_conn *mag_new_conn_ctx(apr_pool_t *pool);