Functions | Variables
test_state.cc File Reference
#include "test_state.h"
#include <openssl/ssl.h>
#include "../../crypto/internal.h"
#include "../internal.h"
Include dependency graph for test_state.cc:

Go to the source code of this file.

Functions

void AdvanceClock (unsigned seconds)
 
void CopySessions (SSL_CTX *dst, const SSL_CTX *src)
 
bool DeserializeContextState (CBS *cbs, SSL_CTX *ctx)
 
struct timevalGetClock ()
 
TestStateGetTestState (const SSL *ssl)
 
static void init_once ()
 
static void push_session (SSL_SESSION *session, void *arg)
 
bool SerializeContextState (SSL_CTX *ctx, CBB *cbb)
 
bool SetTestState (SSL *ssl, std::unique_ptr< TestState > state)
 
static void ssl_ctx_add_session (SSL_SESSION *session, void *void_param)
 
static void TestStateExFree (void *parent, void *ptr, CRYPTO_EX_DATA *ad, int index, long argl, void *argp)
 

Variables

static timeval g_clock = { 1234, 1234 }
 
static CRYPTO_once_t g_once = CRYPTO_ONCE_INIT
 
static int g_state_index = 0
 

Function Documentation

◆ AdvanceClock()

void AdvanceClock ( unsigned  seconds)

Definition at line 47 of file test_state.cc.

◆ CopySessions()

void CopySessions ( SSL_CTX dst,
const SSL_CTX src 
)

Definition at line 76 of file test_state.cc.

◆ DeserializeContextState()

bool DeserializeContextState ( CBS cbs,
SSL_CTX ctx 
)

Definition at line 106 of file test_state.cc.

◆ GetClock()

struct timeval* GetClock ( )

Definition at line 42 of file test_state.cc.

◆ GetTestState()

TestState* GetTestState ( const SSL ssl)

Definition at line 62 of file test_state.cc.

◆ init_once()

static void init_once ( )
static

Definition at line 35 of file test_state.cc.

◆ push_session()

static void push_session ( SSL_SESSION session,
void *  arg 
)
static

Definition at line 80 of file test_state.cc.

◆ SerializeContextState()

bool SerializeContextState ( SSL_CTX ctx,
CBB cbb 
)

Definition at line 85 of file test_state.cc.

◆ SetTestState()

bool SetTestState ( SSL ssl,
std::unique_ptr< TestState state 
)

Definition at line 52 of file test_state.cc.

◆ ssl_ctx_add_session()

static void ssl_ctx_add_session ( SSL_SESSION session,
void *  void_param 
)
static

Definition at line 67 of file test_state.cc.

◆ TestStateExFree()

static void TestStateExFree ( void *  parent,
void *  ptr,
CRYPTO_EX_DATA ad,
int  index,
long  argl,
void *  argp 
)
static

Definition at line 30 of file test_state.cc.

Variable Documentation

◆ g_clock

timeval g_clock = { 1234, 1234 }
static

Definition at line 28 of file test_state.cc.

◆ g_once

Definition at line 24 of file test_state.cc.

◆ g_state_index

int g_state_index = 0
static

Definition at line 25 of file test_state.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:34