Data Structures | Macros | Functions
proxy.h File Reference
#include "buffer.h"
#include "misc.h"
Include dependency graph for proxy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  http_custom_header
struct  http_proxy_options
struct  http_proxy_options_simple
struct  http_proxy_info


#define HTTP_AUTH_NONE   0
#define HTTP_AUTH_BASIC   1
#define HTTP_AUTH_DIGEST   2
#define HTTP_AUTH_NTLM2   4
#define HTTP_AUTH_N   5 /* number of HTTP_AUTH methods */
#define PAR_NO   0 /* don't support any auth retries */
#define PAR_ALL   1 /* allow all proxy auth protocols */
#define PAR_NCT   2 /* disable cleartext proxy auth protocols */


struct http_proxy_optionsinit_http_proxy_options_once (struct http_proxy_options **hpo, struct gc_arena *gc)
struct http_proxy_infohttp_proxy_new (const struct http_proxy_options *o)
void http_proxy_close (struct http_proxy_info *hp)
bool establish_http_proxy_passthru (struct http_proxy_info *p, socket_descriptor_t sd, const char *host, const char *port, struct event_timeout *server_poll_timeout, struct buffer *lookahead, struct signal_info *sig_info)
uint8_t * make_base64_string2 (const uint8_t *str, int str_len, struct gc_arena *gc)
uint8_t * make_base64_string (const uint8_t *str, struct gc_arena *gc)

Macro Definition Documentation


#define HTTP_AUTH_BASIC   1

Definition at line 32 of file proxy.h.


#define HTTP_AUTH_DIGEST   2

Definition at line 33 of file proxy.h.


#define HTTP_AUTH_N   5 /* number of HTTP_AUTH methods */

Definition at line 36 of file proxy.h.


#define HTTP_AUTH_NONE   0

Definition at line 31 of file proxy.h.


#define HTTP_AUTH_NTLM2   4

Definition at line 35 of file proxy.h.



Definition at line 43 of file proxy.h.


#define PAR_ALL   1 /* allow all proxy auth protocols */

Definition at line 49 of file proxy.h.


#define PAR_NCT   2 /* disable cleartext proxy auth protocols */

Definition at line 50 of file proxy.h.


#define PAR_NO   0 /* don't support any auth retries */

Definition at line 48 of file proxy.h.

Function Documentation

◆ establish_http_proxy_passthru()

bool establish_http_proxy_passthru ( struct http_proxy_info p,
socket_descriptor_t  sd,
const char *  host,
const char *  port,
struct event_timeout server_poll_timeout,
struct buffer lookahead,
struct signal_info sig_info 

◆ http_proxy_close()

void http_proxy_close ( struct http_proxy_info hp)

Definition at line 560 of file proxy.c.

Referenced by uninit_proxy_dowork().

◆ http_proxy_new()

struct http_proxy_info* http_proxy_new ( const struct http_proxy_options o)

◆ init_http_proxy_options_once()

struct http_proxy_options* init_http_proxy_options_once ( struct http_proxy_options **  hpo,
struct gc_arena gc 

Definition at line 46 of file proxy.c.


Referenced by add_option(), and management_callback_proxy_cmd().

◆ make_base64_string()

uint8_t* make_base64_string ( const uint8_t *  str,
struct gc_arena gc 

Definition at line 238 of file proxy.c.

References make_base64_string2().

Referenced by username_password_as_base64().

◆ make_base64_string2()

uint8_t* make_base64_string2 ( const uint8_t *  str,
int  str_len,
struct gc_arena gc