diff options
author | Robbie Harwood <rharwood@redhat.com> | 2016-05-08 02:31:00 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2016-05-18 17:46:14 -0400 |
commit | 6a0bc4f5cd46b1ab85dba5bd2de28f568cc947b0 (patch) | |
tree | 8f1451065efa8afb840cde844b48cf1c3de5c6b0 /src/mod_auth_gssapi.h | |
parent | 6e746f91177902528e42ac982e965fe469aa8855 (diff) | |
download | mod_auth_gssapi-6a0bc4f5cd46b1ab85dba5bd2de28f568cc947b0.tar.gz mod_auth_gssapi-6a0bc4f5cd46b1ab85dba5bd2de28f568cc947b0.tar.xz mod_auth_gssapi-6a0bc4f5cd46b1ab85dba5bd2de28f568cc947b0.zip |
Implement unique ccache names
Unique ccache names may be requested using the GssapiDelegCcacheUnique
configuration option. This option is off by default. If both unique
ccache names and session use are enabled, then a mechanism for removing
old ccaches must be supplied.
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Also-authored-by: Petr Vobornik <pvoborni@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/mod_auth_gssapi.h')
-rw-r--r-- | src/mod_auth_gssapi.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mod_auth_gssapi.h b/src/mod_auth_gssapi.h index 1973b2b..0c77b8b 100644 --- a/src/mod_auth_gssapi.h +++ b/src/mod_auth_gssapi.h @@ -1,8 +1,10 @@ -/* Copyright (C) 2014 mod_auth_gssapi contributors - See COPYING for (C) terms */ +/* Copyright (C) 2014, 2016 mod_auth_gssapi contributors - See COPYING for (C) terms */ #include <stdbool.h> #include <stdint.h> +#include <stdlib.h> #include <time.h> +#include <unistd.h> #define APR_WANT_STRFUNC #include "apr_want.h" @@ -68,6 +70,7 @@ struct mag_config { bool use_s4u2proxy; char *deleg_ccache_dir; gss_key_value_set_desc *cred_store; + bool deleg_ccache_unique;; #endif struct seal_key *mag_skey; @@ -112,12 +115,11 @@ struct mag_conn { bool is_preserved; int na_count; struct mag_attr *name_attributes; + const char *ccname; }; #define discard_const(ptr) ((void *)((uintptr_t)(ptr))) struct mag_conn *mag_new_conn_ctx(apr_pool_t *pool); const char *mag_str_auth_type(int auth_type); -char *mag_gss_name_to_ccache_name(request_rec *req, - char *dir, const char *gss_name); char *mag_error(request_rec *req, const char *msg, uint32_t maj, uint32_t min); |