OpenVPN
tls_session Struct Reference

Security parameter state of a single session within a VPN tunnel. More...

#include <ssl_common.h>

Collaboration diagram for tls_session:

Data Fields

struct tls_options * opt
bool burst
struct tls_wrap_ctx tls_wrap
struct tls_wrap_ctx tls_wrap_reneg
int initial_opcode
struct session_id session_id
int key_id
 The current active key id, used to keep track of renegotiations.
int verify_maxlevel
char * common_name
struct cert_hash_set * cert_hash_set
bool verified
struct link_socket_actual untrusted_addr
struct key_state key [KS_SIZE]

Detailed Description

Security parameter state of a single session within a VPN tunnel.

This structure represents an OpenVPN peer-to-peer control channel session.

A tls_session remains over soft resets, but a new instance is initialized for each hard reset.

See also

Definition at line 493 of file ssl_common.h.

Field Documentation

◆ burst

bool tls_session::burst

Definition at line 499 of file ssl_common.h.

◆ cert_hash_set

struct cert_hash_set* tls_session::cert_hash_set

Definition at line 522 of file ssl_common.h.

Referenced by tls_lock_cert_hash_set().

◆ common_name

char* tls_session::common_name

Definition at line 520 of file ssl_common.h.

Referenced by tls_common_name(), and tls_lock_common_name().

◆ initial_opcode

int tls_session::initial_opcode

Definition at line 508 of file ssl_common.h.

◆ key

◆ key_id

int tls_session::key_id

The current active key id, used to keep track of renegotiations.

key_id increments with each soft reset to KEY_ID_MASK then recycles back to 1. This way you know that if key_id is 0, it is the first key.

Definition at line 516 of file ssl_common.h.

Referenced by tls_pre_decrypt().

◆ opt

◆ session_id

struct session_id tls_session::session_id

Definition at line 509 of file ssl_common.h.

◆ tls_wrap

struct tls_wrap_ctx tls_session::tls_wrap

Definition at line 502 of file ssl_common.h.

◆ tls_wrap_reneg

struct tls_wrap_ctx tls_session::tls_wrap_reneg

Definition at line 506 of file ssl_common.h.

◆ untrusted_addr

struct link_socket_actual tls_session::untrusted_addr

Definition at line 527 of file ssl_common.h.

◆ verified

bool tls_session::verified

Definition at line 524 of file ssl_common.h.

◆ verify_maxlevel

int tls_session::verify_maxlevel

Definition at line 518 of file ssl_common.h.


The documentation for this struct was generated from the following file: