OpenVPN
Macros | Functions
push.h File Reference
#include "forward.h"
Include dependency graph for push.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PUSH_MSG_ERROR   0
 
#define PUSH_MSG_REQUEST   1
 
#define PUSH_MSG_REPLY   2
 
#define PUSH_MSG_REQUEST_DEFERRED   3
 
#define PUSH_MSG_AUTH_FAILURE   4
 
#define PUSH_MSG_CONTINUATION   5
 
#define PUSH_MSG_ALREADY_REPLIED   6
 

Functions

int process_incoming_push_request (struct context *c)
 
int process_incoming_push_msg (struct context *c, const struct buffer *buffer, bool honor_received_options, unsigned int permission_mask, unsigned int *option_types_found)
 
bool send_push_request (struct context *c)
 
void receive_auth_failed (struct context *c, const struct buffer *buffer)
 
void server_pushed_signal (struct context *c, const struct buffer *buffer, const bool restart, const int adv)
 
void incoming_push_message (struct context *c, const struct buffer *buffer)
 
void clone_push_list (struct options *o)
 
void push_option (struct options *o, const char *opt, int msglevel)
 
void push_options (struct options *o, char **p, int msglevel, struct gc_arena *gc)
 
void push_reset (struct options *o)
 
void push_remove_option (struct options *o, const char *p)
 
void remove_iroutes_from_push_route_list (struct options *o)
 
void send_auth_failed (struct context *c, const char *client_reason)
 
void send_restart (struct context *c, const char *kill_msg)
 

Macro Definition Documentation

◆ PUSH_MSG_ALREADY_REPLIED

#define PUSH_MSG_ALREADY_REPLIED   6

Definition at line 37 of file push.h.

Referenced by process_incoming_push_request().

◆ PUSH_MSG_AUTH_FAILURE

#define PUSH_MSG_AUTH_FAILURE   4

Definition at line 35 of file push.h.

Referenced by process_incoming_push_request().

◆ PUSH_MSG_CONTINUATION

#define PUSH_MSG_CONTINUATION   5

Definition at line 36 of file push.h.

Referenced by incoming_push_message(), and process_incoming_push_msg().

◆ PUSH_MSG_ERROR

#define PUSH_MSG_ERROR   0

◆ PUSH_MSG_REPLY

#define PUSH_MSG_REPLY   2

Definition at line 33 of file push.h.

Referenced by incoming_push_message(), and process_incoming_push_msg().

◆ PUSH_MSG_REQUEST

#define PUSH_MSG_REQUEST   1

Definition at line 32 of file push.h.

Referenced by incoming_push_message(), and process_incoming_push_request().

◆ PUSH_MSG_REQUEST_DEFERRED

#define PUSH_MSG_REQUEST_DEFERRED   3

Definition at line 34 of file push.h.

Referenced by process_incoming_push_request().

Function Documentation

◆ clone_push_list()

void clone_push_list ( struct options o)

◆ incoming_push_message()

void incoming_push_message ( struct context c,
const struct buffer buffer 
)

◆ process_incoming_push_msg()

int process_incoming_push_msg ( struct context c,
const struct buffer buffer,
bool  honor_received_options,
unsigned int  permission_mask,
unsigned int *  option_types_found 
)

◆ process_incoming_push_request()

int process_incoming_push_request ( struct context c)

◆ push_option()

void push_option ( struct options o,
const char *  opt,
int  msglevel 
)

◆ push_options()

void push_options ( struct options o,
char **  p,
int  msglevel,
struct gc_arena gc 
)

Definition at line 570 of file push.c.

References make_extended_arg_array(), print_argv(), and push_option().

Referenced by add_option().

◆ push_remove_option()

void push_remove_option ( struct options o,
const char *  p 
)

◆ push_reset()

void push_reset ( struct options o)

Definition at line 596 of file push.c.

References CLEAR, and options::push_list.

Referenced by add_option(), and clone_push_list().

◆ receive_auth_failed()

void receive_auth_failed ( struct context c,
const struct buffer buffer 
)

◆ remove_iroutes_from_push_route_list()

void remove_iroutes_from_push_route_list ( struct options o)

◆ send_auth_failed()

void send_auth_failed ( struct context c,
const char *  client_reason 
)

◆ send_push_request()

bool send_push_request ( struct context c)

◆ send_restart()

void send_restart ( struct context c,
const char *  kill_msg 
)

◆ server_pushed_signal()

void server_pushed_signal ( struct context c,
const struct buffer buffer,
const bool  restart,
const int  adv 
)