diff options
author | Simo Sorce <simo@redhat.com> | 2015-08-30 14:31:44 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-08-30 14:31:44 -0400 |
commit | 86661d07812b010b8cf664c2dab596be15ff1e31 (patch) | |
tree | 639a690c71d6513a1a5b3ef20c0b6e93ebc88be4 /src/mod_auth_gssapi.h | |
parent | 3e4f466d5224af50c6789894cca459aa4504ef47 (diff) | |
download | mod_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.h | 3 |
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 { |