OpenVPN
mock_management.c File Reference
#include "syshead.h"
#include "manage.h"
Include dependency graph for mock_management.c:

Go to the source code of this file.

Functions

void management_auth_failure (const struct management *man, const char *type, const char *reason)
char * management_query_pk_sig (struct management *man, const char *b64_data, const char *algorithm)
void management_set_state (struct management *man, const int state, const char *detail, const in_addr_t *tun_local_ip, const struct in6_addr *tun_local_ip6, const struct openvpn_sockaddr *local_addr, const struct openvpn_sockaddr *remote_addr)
void management_sleep (const int n)
 A sleep function that services the management layer for n seconds rather than doing nothing.

Variables

struct management * management

Function Documentation

◆ management_auth_failure()

void management_auth_failure ( const struct management * man,
const char * type,
const char * reason )

Definition at line 39 of file mock_management.c.

References ASSERT.

◆ management_query_pk_sig()

char * management_query_pk_sig ( struct management * man,
const char * b64_data,
const char * algorithm )

Definition at line 45 of file mock_management.c.

◆ management_set_state()

void management_set_state ( struct management * man,
const int state,
const char * detail,
const in_addr_t * tun_local_ip,
const struct in6_addr * tun_local_ip6,
const struct openvpn_sockaddr * local_addr,
const struct openvpn_sockaddr * remote_addr )

Definition at line 51 of file mock_management.c.

◆ management_sleep()

void management_sleep ( const int n)

A sleep function that services the management layer for n seconds rather than doing nothing.

Definition at line 61 of file mock_management.c.

Variable Documentation

◆ management

struct management* management

Definition at line 36 of file mock_management.c.