|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 27.57 GB of 70.42 GB (39.16%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
src/
courier-0.66.1/
tcpd/
- drwxrwxrwx
|
Viewing file: tlscachetest.c (1.2 KB) -rw-rw-rw-Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
/* ** Copyright 2002-2006 Double Precision, Inc. ** See COPYING for distribution information. */
#define TLSCACHEMINSIZE (sizeof(struct hdr) + 5 * (sizeof(struct obj)+8)) #include "tlscache.c"
static int printcache(void *rec, size_t recsize, int *doupdate, void *arg) { if (fwrite((const char *)rec, recsize, 1, stdout) == 1) printf("\n"); return 0; }
static int replacecache(void *rec, size_t recsize, int *doupdate, void *arg) { const char *p=(const char *)arg; const char *q;
if ((q=strchr(p, '-')) == NULL || strlen(q+1) != q-p) return (0);
if (recsize == q-p && memcmp(rec, p, q-p) == 0) { memcpy(rec, q+1, q-p); *doupdate=1; } return 0; }
int main(int argc, char **argv) { struct CACHE *p=tls_cache_open("test.dat", TLSCACHEMINSIZE);
if (!p) { perror("test.dat"); return (-1); }
if (argc > 1) { char *s=argv[1];
if (*s == '+') { ++s; if (tls_cache_add(p, s, strlen(s))) { perror("tls_cache_add"); } }
if (*s == '-') { if (tls_cache_walk(p, replacecache, s+1) < 0) { perror("tls_cache_walk"); exit(1); } } }
if (tls_cache_walk(p, printcache, NULL) < 0) perror("tls_cache_walk"); tls_cache_close(p); return (0); }
|