From 86661d07812b010b8cf664c2dab596be15ff1e31 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 30 Aug 2015 14:31:44 -0400 Subject: 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 --- src/mod_auth_gssapi.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mod_auth_gssapi.h') 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 { -- cgit