|
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 | : | 22.22 GB of 70.42 GB (31.56%) |
|
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/
maildrop-2.2.0/
rfc2045/
- drwxr-xr-x
|
Viewing file: rfc2045acprep.c (2.03 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
/* ** Copyright 1998 - 1999 Double Precision, Inc. See COPYING for ** distribution information. */
#include "rfc2045.h" #include <ctype.h> #include <string.h>
/* $Id: rfc2045acprep.c,v 1.2 1999/12/06 13:29:02 mrsam Exp $ */
static void start_rwprep(struct rfc2045 *); static void do_rwprep(const char *, size_t); static void end_rwprep();
static struct rfc2045ac rfc2045acprep={ &start_rwprep, &do_rwprep, &end_rwprep};
static struct rfc2045 *currwp; static int curlinepos=0;
typedef enum { raw, quotedprint, qpseeneq, qpseeneqh, base64} state_t;
static state_t curstate; static int statechar;
#define h2nyb(c) ( (c) >= 'a' && (c) <= 'f' ? (c)-('a'-10): \ (c) >= 'A' && (c) <= 'F' ? (c)-('A'-10): (c)-'0')
struct rfc2045 *rfc2045_alloc_ac() { struct rfc2045 *p=rfc2045_alloc();
if (p) p->rfc2045acptr= &rfc2045acprep; currwp=0; return (p); }
static void start_rwprep(struct rfc2045 *p) { currwp=p; curlinepos=0; curstate=raw; if (p->content_transfer_encoding) { if (strcmp(p->content_transfer_encoding, "quoted-printable") == 0) curstate=quotedprint; else if (strcmp(p->content_transfer_encoding, "base64") == 0) curstate=base64; } }
static void do_rwprep(const char * p, size_t n) { if (!currwp) return; for ( ; n; --n, ++p) switch (curstate) { case quotedprint: if (*p == '=') { curstate=qpseeneq; continue; } /* FALLTHRU */ case raw: if (*p == '\r' || *p == '\n') curlinepos=0; else if (++curlinepos > 500) currwp->haslongline=1; if ((unsigned char)*p >= 127) currwp->has8bitchars=1; break; case qpseeneq: if (*p == '\n') { curstate=quotedprint; continue; } if (isspace((int)(unsigned char)*p)) continue; /* Ignore WSP */ statechar=*p; curstate=qpseeneqh; continue; case qpseeneqh: curstate=quotedprint; if ( (unsigned char) ( (h2nyb(statechar) << 4) + h2nyb(*p) ) >= 127 ) currwp->has8bitchars=1; if (++curlinepos > 500) currwp->haslongline=1; continue; case base64: break; } }
static void end_rwprep() { }
|