/* Copyright (C) 2014 mod_auth_gssapi authors - See COPYING for (C) terms */ #include #include #include #include #include #define APR_WANT_STRFUNC #include "apr_want.h" #include #include #include #include #include #include #include #include /* apache's httpd.h drags in empty PACKAGE_* variables. * undefine them to avoid annoying compile warnings as they * are re-defined in config.h */ #undef PACKAGE_BUGREPORT #undef PACKAGE_NAME #undef PACKAGE_STRING #undef PACKAGE_TARNAME #undef PACKAGE_VERSION #include "config.h" #include "crypto.h" #include "sessions.h" #define MIN_SESS_EXP_TIME 300 /* 5 minutes validity minimum */ struct mag_config { apr_pool_t *pool; bool ssl_only; bool map_to_local; bool gss_conn_ctx; bool use_sessions; bool use_s4u2proxy; char *deleg_ccache_dir; gss_key_value_set_desc *cred_store; struct seal_key *mag_skey; }; struct mag_conn { apr_pool_t *parent; gss_ctx_id_t ctx; bool established; const char *user_name; const char *gss_name; time_t expiration; };