summaryrefslogtreecommitdiffstats
path: root/auth_mellon.h
diff options
context:
space:
mode:
authorolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2014-06-20 11:25:28 +0000
committerolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2014-06-20 11:25:28 +0000
commit519f22493ebed5bcb64f25066412a2894d7a372e (patch)
tree30ab331e8e6666a36a3e7716c6ea6a2b48e4add9 /auth_mellon.h
parent5ad49a4c840b33447260307f9e7c2eb9ef475ffa (diff)
downloadmod_auth_mellon-519f22493ebed5bcb64f25066412a2894d7a372e.tar.gz
mod_auth_mellon-519f22493ebed5bcb64f25066412a2894d7a372e.tar.xz
mod_auth_mellon-519f22493ebed5bcb64f25066412a2894d7a372e.zip
Convert session user name to dynamic size storage
Using the previously introduced storage facility convert storage of the user name from being constrained to fixed sized strings to being constrained only by the overall entry cache size. Signed-off-by: Simo Sorce <simo@redhat.com> git-svn-id: https://modmellon.googlecode.com/svn/trunk@236 a716ebb1-153a-0410-b759-cfb97c6a1b53
Diffstat (limited to 'auth_mellon.h')
-rw-r--r--auth_mellon.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/auth_mellon.h b/auth_mellon.h
index ff2c374..c6a10b3 100644
--- a/auth_mellon.h
+++ b/auth_mellon.h
@@ -22,6 +22,8 @@
#ifndef MOD_AUTH_MELLON_H
#define MOD_AUTH_MELLON_H
+#include <stdbool.h>
+
#include <lasso/lasso.h>
#include <lasso/xml/saml-2.0/samlp2_authn_request.h>
#include <lasso/xml/saml-2.0/samlp2_logout_request.h>
@@ -255,7 +257,7 @@ typedef struct am_cache_entry_t {
apr_time_t expires;
int logged_in;
unsigned short size;
- char user[AM_CACHE_USERSIZE];
+ am_cache_storage_t user;
/* Variables used to store lasso state between login requests
*and logout requests.