Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

ticketcache.h

Go to the documentation of this file.
00001 
00024 #ifndef _CAS_TICKETCACHE_H
00025 #define _CAS_TICKETCACHE_H
00026 
00027 #include <sys/types.h>
00028 
00029 #include "httpd.h"
00030 #include "http_config.h"
00031 
00035 typedef struct {
00037   char valid;           
00039   char secure;          
00041   char ticket[30];              
00043   char netid[9];                
00045   time_t expiration;            
00046 } TicketEntry;
00047 
00048 /*
00049  * ------------------------------------------------------------------
00050  * default values for Apache directives
00051  *-------------------------------------------------------------------
00052  */
00053 
00055 #define DEFAULT_CASLocalCacheFile NULL
00056 
00057 #define DEFAULT_CASLocalCacheSize 1000
00058 
00059 #define DEFAULT_CASLocalCacheTimeout 3600
00060 
00061 #define DEFAULT_CASLocalCacheInsecure 0
00062 
00063 
00064 /*
00065  * ------------------------------------------------------------------
00066  * cache configuration
00067  *-------------------------------------------------------------------
00068  */
00069 
00070 /* Command handler for the CASLocalCacheFile directive */
00071 const char *cas_read_CASLocalCacheFile(cmd_parms *cmd, 
00072                                        void *dummy, 
00073                                        const char *word);
00074 /* Command handler for the CASLocalCacheSize directive */
00075 const char *cas_read_CASLocalCacheSize(cmd_parms *cmd, 
00076                                        void *dummy, 
00077                                        const char *word);
00078 /* Command handler for the CASLocalCacheTimeout directive */
00079 const char *cas_read_CASLocalCacheTimeout(cmd_parms *cmd, 
00080                                           void *dummy, 
00081                                           const char *word);
00082 /* Command handler for the CASLocalCacheInsecure directive */
00083 const char *cas_read_CASLocalCacheInsecure(cmd_parms *cmd, 
00084                                            void *dummy, 
00085                                            int bool);
00086 
00087 /*
00088  * ------------------------------------------------------------------
00089  * cache initialization
00090  *-------------------------------------------------------------------
00091  */
00092 
00093 int cas_is_cache_initialized();
00094 void cas_cache_init(server_rec *s);
00095 
00096 /*
00097  * ------------------------------------------------------------------
00098  * functions to read/write tickets 
00099  *-------------------------------------------------------------------
00100  */
00101 
00102 void cas_cache_put(TicketEntry te);
00103 
00104 int cas_cache_get(char *ticket, 
00105                   char *buf, 
00106                   int buflen, 
00107                   char insecure);
00108 
00109 /*
00110  * ------------------------------------------------------------------
00111  * cache cleanup
00112  *-------------------------------------------------------------------
00113  */
00114 
00115 void cas_cache_cleanup();
00116 
00117 #endif
00118 

Generated on Thu Jun 26 14:33:03 2003 for mod_cas by doxygen1.3