Files | |
| file | ticketcache.c |
| file | ticketcache.h |
Data Structures | |
| struct | TicketEntry |
Defines | |
| #define | DEFAULT_CASLocalCacheFile NULL |
| #define | DEFAULT_CASLocalCacheSize 1000 |
| #define | DEFAULT_CASLocalCacheTimeout 3600 |
| #define | DEFAULT_CASLocalCacheInsecure 0 |
Functions | |
| void | write_lock (int fd) |
| void | read_lock (int fd) |
| void | un_lock (int fd) |
| const char * | cas_read_CASLocalCacheFile (cmd_parms *cmd, void *dummy, const char *word) |
| const char * | cas_read_CASLocalCacheSize (cmd_parms *cmd, void *dummy, const char *word) |
| const char * | cas_read_CASLocalCacheTimeout (cmd_parms *cmd, void *dummy, const char *word) |
| const char * | cas_read_CASLocalCacheInsecure (cmd_parms *cmd, void *dummy, int bool) |
| int | cas_is_cache_initialized () |
| void | cas_cache_init (server_rec *s) |
| void | cas_cache_put (TicketEntry te) |
| int | cas_cache_get (char *ticket, char *buf, int buflen, char insecure) |
| void | cas_cache_cleanup () |
Variables | |
| char * | ticket_cache = NULL |
| size_t | ticket_cache_size = 0 |
| int | ticket_cache_fd |
The CAS Ticket Cache is expected to be mmap()'d to a file. It is treated as an array of TicketEntry, preceded by a single int representing the index into the array where the next write is to occur. The array is treated as a circular buffer; new tickets are written either to an unused entry or to the oldest existing entry.
|
|
Default cache file (no cache is used when the CASLocalCacheFile directive is not used) |
|
|
By default, Insecure cookies are not permitted |
|
|
Default cache size (used when no CASLocalCacheSize directive is found) |
|
|
Default cache timeout (used when no CASLocalCacheTimeout directive is found) |
|
|
Cleanup the ticket cache. |
|
||||||||||||||||||||
|
Retrieves the NetID for a given ticket, storing it into the buffer provided.
|
|
|
initialize the ticket cache.
|
|
|
Add an entry to the ticket cache.
|
|
|
Tells if the cache has been initialized or not.
|
|
||||||||||||||||
|
Command handler for the CASLocalCacheFile directive.
|
|
||||||||||||||||
|
Command handler for the CASLocalCacheInsecure directive.
|
|
||||||||||||||||
|
Command handler for the CASLocalCacheSize directive.
|
|
||||||||||||||||
|
Command handler for the CASLocalCacheTimeout directive.
|
|
|
Prepare for writelock on (or unlock of) entire file.
|
|
|
Prepare for writelock on (or unlock of) entire file.
|
|
|
Prepare for writelock on (or unlock of) entire file.
|
|
|
Per-process local pointer to our mmap()'d ticket cache |
|
|
File descriptor used to keep the cache opened |
|
|
size of the ticket cache |
1.3