summaryrefslogtreecommitdiffstats
path: root/src/mod_auth_gssapi.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-08-30 14:31:44 -0400
committerSimo Sorce <simo@redhat.com>2015-08-30 14:31:44 -0400
commit86661d07812b010b8cf664c2dab596be15ff1e31 (patch)
tree639a690c71d6513a1a5b3ef20c0b6e93ebc88be4 /src/mod_auth_gssapi.h
parent3e4f466d5224af50c6789894cca459aa4504ef47 (diff)
downloadmod_auth_gssapi-86661d07812b010b8cf664c2dab596be15ff1e31.tar.gz
mod_auth_gssapi-86661d07812b010b8cf664c2dab596be15ff1e31.tar.xz
mod_auth_gssapi-86661d07812b010b8cf664c2dab596be15ff1e31.zip
Allocate new keys at server startup.
This avoids a potential race condition if the first 2 request come in at the same time. It also avoids issues with forked apapche processes which may end up with different keys per fork. Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/mod_auth_gssapi.h')
-rw-r--r--src/mod_auth_gssapi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mod_auth_gssapi.h b/src/mod_auth_gssapi.h
index 46e5c6a..b08c38a 100644
--- a/src/mod_auth_gssapi.h
+++ b/src/mod_auth_gssapi.h
@@ -63,15 +63,18 @@ struct mag_config {
struct mag_server_config {
gss_OID_set default_mechs;
+ struct seal_key *mag_skey;
};
struct mag_req_cfg {
+ request_rec *req;
struct mag_config *cfg;
gss_OID_set desired_mechs;
bool use_sessions;
bool send_persist;
const char *req_proto;
const char *rep_proto;
+ struct seal_key *mag_skey;
};
struct mag_conn {