OpenVPN
Data Structures | Macros | Typedefs | Enumerations
ovpn_dco_win.h File Reference
#include <winsock2.h>
#include <ws2def.h>
#include <ws2ipdef.h>
Include dependency graph for ovpn_dco_win.h:

Go to the source code of this file.

Data Structures

struct  _OVPN_NEW_PEER
 
struct  _OVPN_STATS
 
struct  _OVPN_KEY_DIRECTION
 
struct  _OVPN_CRYPTO_DATA
 
struct  _OVPN_SET_PEER
 
struct  _OVPN_VERSION
 

Macros

#define OVPN_IOCTL_NEW_PEER   CTL_CODE(FILE_DEVICE_UNKNOWN, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define OVPN_IOCTL_GET_STATS   CTL_CODE(FILE_DEVICE_UNKNOWN, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define OVPN_IOCTL_NEW_KEY   CTL_CODE(FILE_DEVICE_UNKNOWN, 3, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define OVPN_IOCTL_SWAP_KEYS   CTL_CODE(FILE_DEVICE_UNKNOWN, 4, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define OVPN_IOCTL_SET_PEER   CTL_CODE(FILE_DEVICE_UNKNOWN, 5, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define OVPN_IOCTL_START_VPN   CTL_CODE(FILE_DEVICE_UNKNOWN, 6, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define OVPN_IOCTL_DEL_PEER   CTL_CODE(FILE_DEVICE_UNKNOWN, 7, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define OVPN_IOCTL_GET_VERSION   CTL_CODE(FILE_DEVICE_UNKNOWN, 8, METHOD_BUFFERED, FILE_ANY_ACCESS)
 

Typedefs

typedef struct _OVPN_NEW_PEER OVPN_NEW_PEER
 
typedef struct _OVPN_NEW_PEERPOVPN_NEW_PEER
 
typedef struct _OVPN_STATS OVPN_STATS
 
typedef struct _OVPN_STATSPOVPN_STATS
 
typedef enum _OVPN_KEY_SLOT OVPN_KEY_SLOT
 
typedef enum _OVPN_CIPHER_ALG OVPN_CIPHER_ALG
 
typedef struct _OVPN_KEY_DIRECTION OVPN_KEY_DIRECTION
 
typedef struct _OVPN_CRYPTO_DATA OVPN_CRYPTO_DATA
 
typedef struct _OVPN_CRYPTO_DATAPOVPN_CRYPTO_DATA
 
typedef struct _OVPN_SET_PEER OVPN_SET_PEER
 
typedef struct _OVPN_SET_PEERPOVPN_SET_PEER
 
typedef struct _OVPN_VERSION OVPN_VERSION
 
typedef struct _OVPN_VERSIONPOVPN_VERSION
 

Enumerations

enum  OVPN_PROTO { OVPN_PROTO_UDP, OVPN_PROTO_TCP }
 
enum  _OVPN_KEY_SLOT { OVPN_KEY_SLOT_PRIMARY, OVPN_KEY_SLOT_SECONDARY }
 
enum  _OVPN_CIPHER_ALG { OVPN_CIPHER_ALG_NONE, OVPN_CIPHER_ALG_AES_GCM, OVPN_CIPHER_ALG_CHACHA20_POLY1305 }
 

Macro Definition Documentation

◆ OVPN_IOCTL_DEL_PEER

#define OVPN_IOCTL_DEL_PEER   CTL_CODE(FILE_DEVICE_UNKNOWN, 7, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 115 of file ovpn_dco_win.h.

◆ OVPN_IOCTL_GET_STATS

#define OVPN_IOCTL_GET_STATS   CTL_CODE(FILE_DEVICE_UNKNOWN, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 110 of file ovpn_dco_win.h.

◆ OVPN_IOCTL_GET_VERSION

#define OVPN_IOCTL_GET_VERSION   CTL_CODE(FILE_DEVICE_UNKNOWN, 8, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 116 of file ovpn_dco_win.h.

◆ OVPN_IOCTL_NEW_KEY

#define OVPN_IOCTL_NEW_KEY   CTL_CODE(FILE_DEVICE_UNKNOWN, 3, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 111 of file ovpn_dco_win.h.

◆ OVPN_IOCTL_NEW_PEER

#define OVPN_IOCTL_NEW_PEER   CTL_CODE(FILE_DEVICE_UNKNOWN, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 109 of file ovpn_dco_win.h.

◆ OVPN_IOCTL_SET_PEER

#define OVPN_IOCTL_SET_PEER   CTL_CODE(FILE_DEVICE_UNKNOWN, 5, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 113 of file ovpn_dco_win.h.

◆ OVPN_IOCTL_START_VPN

#define OVPN_IOCTL_START_VPN   CTL_CODE(FILE_DEVICE_UNKNOWN, 6, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 114 of file ovpn_dco_win.h.

◆ OVPN_IOCTL_SWAP_KEYS

#define OVPN_IOCTL_SWAP_KEYS   CTL_CODE(FILE_DEVICE_UNKNOWN, 4, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 112 of file ovpn_dco_win.h.

Typedef Documentation

◆ OVPN_CIPHER_ALG

◆ OVPN_CRYPTO_DATA

◆ OVPN_KEY_DIRECTION

◆ OVPN_KEY_SLOT

◆ OVPN_NEW_PEER

typedef struct _OVPN_NEW_PEER OVPN_NEW_PEER

◆ OVPN_SET_PEER

typedef struct _OVPN_SET_PEER OVPN_SET_PEER

◆ OVPN_STATS

typedef struct _OVPN_STATS OVPN_STATS

◆ OVPN_VERSION

typedef struct _OVPN_VERSION OVPN_VERSION

◆ POVPN_CRYPTO_DATA

◆ POVPN_NEW_PEER

typedef struct _OVPN_NEW_PEER * POVPN_NEW_PEER

◆ POVPN_SET_PEER

typedef struct _OVPN_SET_PEER * POVPN_SET_PEER

◆ POVPN_STATS

typedef struct _OVPN_STATS * POVPN_STATS

◆ POVPN_VERSION

typedef struct _OVPN_VERSION * POVPN_VERSION

Enumeration Type Documentation

◆ _OVPN_CIPHER_ALG

Enumerator
OVPN_CIPHER_ALG_NONE 
OVPN_CIPHER_ALG_AES_GCM 
OVPN_CIPHER_ALG_CHACHA20_POLY1305 

Definition at line 75 of file ovpn_dco_win.h.

◆ _OVPN_KEY_SLOT

Enumerator
OVPN_KEY_SLOT_PRIMARY 
OVPN_KEY_SLOT_SECONDARY 

Definition at line 70 of file ovpn_dco_win.h.

◆ OVPN_PROTO

enum OVPN_PROTO
Enumerator
OVPN_PROTO_UDP 
OVPN_PROTO_TCP 

Definition at line 31 of file ovpn_dco_win.h.