summaryrefslogtreecommitdiffstats
path: root/auth_mellon.h
diff options
context:
space:
mode:
authorolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2014-06-20 11:25:22 +0000
committerolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2014-06-20 11:25:22 +0000
commit5ad49a4c840b33447260307f9e7c2eb9ef475ffa (patch)
treea2984bff36594881f429dc98da3c4ae82900c290 /auth_mellon.h
parente486a708c5506f1014f0e1ae98d4d98c41e5274e (diff)
downloadmod_auth_mellon-5ad49a4c840b33447260307f9e7c2eb9ef475ffa.tar.gz
mod_auth_mellon-5ad49a4c840b33447260307f9e7c2eb9ef475ffa.tar.xz
mod_auth_mellon-5ad49a4c840b33447260307f9e7c2eb9ef475ffa.zip
Convert session env array to dynamic size storage
Using the previously introduced storage facility convert storage of env key/value pairs 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@235 a716ebb1-153a-0410-b759-cfb97c6a1b53
Diffstat (limited to 'auth_mellon.h')
-rw-r--r--auth_mellon.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/auth_mellon.h b/auth_mellon.h
index 64b6af1..ff2c374 100644
--- a/auth_mellon.h
+++ b/auth_mellon.h
@@ -71,8 +71,6 @@
/* Size definitions for the session cache.
*/
#define AM_CACHE_KEYSIZE 120
-#define AM_CACHE_VARSIZE 128
-#define AM_CACHE_VALSIZE 512-AM_CACHE_VARSIZE
#define AM_CACHE_ENVSIZE 128
#define AM_CACHE_USERSIZE 512
#define AM_CACHE_DEFAULT_ENTRY_SIZE 196608
@@ -247,8 +245,8 @@ typedef struct am_cache_storage_t {
} am_cache_storage_t;
typedef struct am_cache_env_t {
- char varname[AM_CACHE_VARSIZE];
- char value[AM_CACHE_VALSIZE];
+ am_cache_storage_t varname;
+ am_cache_storage_t value;
} am_cache_env_t;
typedef struct am_cache_entry_t {